this repo has no description
1opam-version: "2.0"
2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3synopsis: "OCaml 5.2.0, with Statistical Memory Profiler support"
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-multicore/ocaml.git#5.2.0+statmemprof"
19depends: [
20 # This is OCaml 5.2.0
21 "ocaml" {= "5.2.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
30 "ocaml-beta" {opam-version < "2.1.0"}
31
32 # Port selection (Windows)
33 # amd64 mingw-w64 only
34 (("arch-x86_64" {os = "win32" & arch = "x86_64"} &
35 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
36 # i686 mingw-w64 only
37 ("arch-x86_32" {os = "win32"} & "ocaml-option-bytecode-only" {os = "win32"} &
38 "system-mingw" & "mingw-w64-shims" {os-distribution = "cygwin" & build}) |
39 # Non-Windows systems need to install something to satisfy this formula, so
40 # repeat the base-unix dependency
41 "base-unix" {os != "win32" & post})
42
43 # All the 32-bit architectures are bytecode-only
44 "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64" & arch != "ppc64"}
45
46 # Support Packages
47 "flexdll" {>= "0.42" & os = "win32"}
48]
49conflict-class: "ocaml-core-compiler"
50flags: [ compiler avoid-version ]
51setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
52x-env-path-rewrite: [
53 [CAML_LD_LIBRARY_PATH (";" {os = "win32"} ":" {os != "win32"}) "target"]
54]
55build-env: [
56 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
57 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
58]
59build: [
60 [
61 "./configure"
62 "--host=x86_64-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_64:installed}
63 "--host=i686-w64-mingw32" {os-distribution = "cygwin" & system-mingw:installed & arch-x86_32:installed}
64 "--prefix=%{prefix}%"
65 "--docdir=%{doc}%/ocaml"
66 "--with-flexdll=%{flexdll:share}%" {os = "win32" & flexdll:installed}
67 "-C"
68 "--with-afl" {ocaml-option-afl:installed}
69 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
70 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
71 "--enable-flambda" {ocaml-option-flambda:installed}
72 "--enable-frame-pointers" {ocaml-option-fp:installed}
73 "--without-zstd" {ocaml-option-no-compression:installed}
74 "--enable-tsan" {ocaml-option-tsan:installed}
75 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
76 "CC=clang" {ocaml-option-tsan:installed & (os="macos")}
77 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
78 "CFLAGS=-Os" {ocaml-option-musl:installed}
79 "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
80 "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
81 "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
82 "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
83 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
84 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
85 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
86 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
87 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
88 "LIBS=-static" {ocaml-option-static:installed}
89 "--disable-warn-error"
90 ]
91 [make "-j%{jobs}%"]
92]
93install: [make "install"]
94url {
95 src: "https://github.com/ocaml-multicore/ocaml/archive/5.2.0+statmemprof.tar.gz"
96 checksum: "sha256=7118bd121642cd8fc8558b26b99d62670f3f1442e43e26c05fc9b5ed77b70ca7"
97}
98conflicts: [
99 "system-msvc"
100]
101depopts: [
102 "ocaml-option-32bit"
103 "ocaml-option-afl"
104 "ocaml-option-bytecode-only"
105 "ocaml-option-no-flat-float-array"
106 "ocaml-option-flambda"
107 "ocaml-option-fp"
108 "ocaml-option-no-compression"
109 "ocaml-option-musl"
110 "ocaml-option-leak-sanitizer"
111 "ocaml-option-address-sanitizer"
112 "ocaml-option-static"
113 "ocaml-option-tsan"
114]
115extra-source "ocaml-variants.install" {
116 src:
117 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install"
118 checksum: [
119 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678"
120 "md5=3e969b841df1f51ca448e6e6295cb451"
121 ]
122}