this repo has no description
1opam-version: "2.0" 2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception" 3synopsis: "Current trunk" 4maintainer: [ 5 "David Allsopp <david@tarides.com>" 6 "Florian Angeletti <florian.angeletti@inria.fr>" 7] 8authors: [ 9 "Xavier Leroy" 10 "Damien Doligez" 11 "Alain Frisch" 12 "Jacques Garrigue" 13 "Didier Rémy" 14 "Jérôme Vouillon" 15] 16homepage: "https://ocaml.org" 17bug-reports: "https://github.com/ocaml/opam-repository/issues" 18dev-repo: "git+https://github.com/ocaml/ocaml.git#trunk" 19depends: [ 20 # This is OCaml 5.4.0 21 "ocaml" {= "5.4.0" & post} 22 23 # General base- packages 24 "base-unix" {post} 25 "base-bigarray" {post} 26 "base-threads" {post} 27 "base-domains" {post} 28 "base-nnp" {post} 29 "base-effects" {post} 30 31 "ocaml-beta" {opam-version < "2.1.0"} 32 33 # Architecture (non-Windows) 34 # opam-repository at present requires that ocaml-base-compiler is installed 35 # using an architecture which matches the machine's, since arch is used in 36 # available fields. Cross-compilation at this stage is an unstable accident. 37 "host-arch-arm32" {arch = "arm32" & post} 38 "host-arch-arm64" {arch = "arm64" & post} 39 "host-arch-ppc64" {arch = "ppc64" & post} 40 "host-arch-riscv64" {arch = "riscv64" & post} 41 "host-arch-s390x" {arch = "s390x" & post} 42 # The Windows ports explicitly select the architecture (see below) this 43 # facility is not yet available for other platforms. 44 "host-arch-x86_32" {os != "win32" & arch = "x86_32" & post} 45 ("host-arch-x86_64" {os != "win32" & arch = "x86_64" & post} | 46 ("host-arch-x86_32" {os != "win32" & arch = "x86_64" & post} & "ocaml-option-32bit" {os != "win32" & arch = "x86_64"})) 47 "host-arch-unknown" {os != "win32" & arch != "arm32" & arch != "arm64" & arch != "ppc64" & arch != "riscv64" & arch != "s390x" & arch != "x86_32" & arch != "x86_64" & post} 48 49 # Port selection (Windows) 50 # amd64 mingw-w64 / MSVC 51 (("arch-x86_64" {os = "win32" & arch = "x86_64"} & 52 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) | 53 ("system-msvc" & "winpthreads" & "ocaml-option-no-compression" {os = "win32"}))) | 54 # i686 mingw-w64 / MSVC 55 ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" {os = "win32"} & 56 (("system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) | 57 ("system-msvc" & "winpthreads" & "ocaml-option-no-compression" {os = "win32"}))) | 58 # Non-Windows systems 59 "host-system-other" {os != "win32" & post}) 60 61 # All the 32-bit architectures are bytecode-only 62 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64" & arch != "ppc64"} 63 64 # Support Packages 65 "flexdll" {>= "0.42" & os = "win32"} 66] 67conflict-class: "ocaml-core-compiler" 68flags: [ compiler avoid-version ] 69setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs" 70x-env-path-rewrite: [ 71 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"] 72] 73build-env: [ 74 [MSYS2_ARG_CONV_EXCL = "*"] 75 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"] 76 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"] 77] 78build: [ 79 [ 80 "./configure" 81 "--host=x86_64-pc-windows" {system-msvc:installed & arch-x86_64:installed} 82 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed} 83 "--host=i686-pc-windows" {system-msvc:installed & arch-x86_32:installed} 84 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed} 85 "--prefix=%{prefix}%" 86 "--docdir=%{doc}%/ocaml" 87 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed} 88 "--with-winpthreads-msvc=%{winpthreads:share}%" {system-msvc:installed} 89 "-C" 90 "--with-afl" {ocaml-option-afl:installed} 91 "--disable-native-compiler" {ocaml-option-bytecode-only:installed} 92 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed} 93 "--enable-flambda" {ocaml-option-flambda:installed} 94 "--enable-frame-pointers" {ocaml-option-fp:installed} 95 "--without-zstd" {ocaml-option-no-compression:installed} 96 "--enable-tsan" {ocaml-option-tsan:installed} 97 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")} 98 "CC=clang" {ocaml-option-tsan:installed & (os="macos")} 99 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"} 100 "CFLAGS=-Os" {ocaml-option-musl:installed} 101 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")} 102 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed} 103 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"} 104 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"} 105 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"} 106 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"} 107 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"} 108 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"} 109 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"} 110 "LIBS=-static" {ocaml-option-static:installed} 111 "--disable-warn-error" 112 ] 113 [make "-j%{jobs}%"] 114] 115install: [make "install"] 116url { 117 src: "https://github.com/ocaml/ocaml/archive/trunk.tar.gz" 118} 119depopts: [ 120 "ocaml-option-32bit" 121 "ocaml-option-afl" 122 "ocaml-option-bytecode-only" 123 "ocaml-option-no-flat-float-array" 124 "ocaml-option-flambda" 125 "ocaml-option-fp" 126 "ocaml-option-no-compression" 127 "ocaml-option-musl" 128 "ocaml-option-leak-sanitizer" 129 "ocaml-option-address-sanitizer" 130 "ocaml-option-static" 131 "ocaml-option-tsan" 132]