@@ -13,7 +13,13 @@ depends: [
1313 "base-unix" {post}
1414 "base-bigarray" {post}
1515 "base-threads" {post}
16+ "base-domains" {post}
17+ "base-nnp" {post}
18+ "base-effects" {post}
1619 "base-metaocaml-ocamlfind" {post}
20+
21+ # All the 32-bit architectures are bytecode-only
22+ "ocaml-option-bytecode-only" {arch != "arm64" & arch != "x86_64" & arch != "s390x" & arch != "riscv64" & arch != "ppc64"}
1723]
1824conflict-class: "ocaml-core-compiler"
1925flags: compiler
@@ -26,27 +32,25 @@ build: [
2632 "-C"
2733 "--with-afl" {ocaml-option-afl:installed}
2834 "--disable-native-compiler" {ocaml-option-bytecode-only:installed}
29- "--disable-force-safe-string" {ocaml-option-default-unsafe-string:installed}
30- "DEFAULT_STRING=unsafe" {ocaml-option-default-unsafe-string:installed}
3135 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
3236 "--enable-flambda" {ocaml-option-flambda:installed}
3337 "--enable-frame-pointers" {ocaml-option-fp:installed}
34- "--disable-naked-pointers" {ocaml-option-nnp:installed}
35- "--enable-naked-pointers-checker" {ocaml-option-nnpchecker:installed}
36- "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
38+ "--without-zstd" {ocaml-option-no-compression:installed}
39+ "--enable-tsan" {ocaml-option-tsan:installed}
40+ "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os = "openbsd" | os = "macos")}
41+ "CC=clang" {ocaml-option-tsan:installed & (os="macos")}
3742 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
38- "CFLAGS=-Os" {ocaml-option-musl:installed}
43+ "CFLAGS=-Os" {ocaml-option-musl:installed & arch != "arm64"}
44+ "CFLAGS=-Os -mno-outline-atomics" {ocaml-option-musl:installed & arch = "arm64"}
45+ "LDFLAGS=-Wl,--no-as-needed,-ldl" {ocaml-option-leak-sanitizer:installed | (ocaml-option-address-sanitizer:installed & os!="macos")}
46+ "CC=gcc -ldl -fsanitize=leak -fno-omit-frame-pointer -O1 -g" {ocaml-option-leak-sanitizer:installed}
47+ "CC=gcc -ldl -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os!="macos"}
48+ "CC=clang -fsanitize=address -fno-omit-frame-pointer -O1 -g" {ocaml-option-address-sanitizer:installed & os="macos"}
3949 "CC=gcc -m32" {ocaml-option-32bit:installed & os="linux"}
4050 "CC=gcc -Wl,-read_only_relocs,suppress -arch i386 -m32" {ocaml-option-32bit:installed & os="macos"}
41- "ASPP=cc -c" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd"|os="macos")}
4251 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
43- "ASPP=gcc -m32 -c" {ocaml-option-32bit:installed & os="linux"}
44- "ASPP=gcc -arch i386 -m32 -c" {ocaml-option-32bit:installed & os="macos"}
45- "AS=as --32" {ocaml-option-32bit:installed & os="linux"}
46- "AS=as -arch i386" {ocaml-option-32bit:installed & os="macos"}
4752 "--host=i386-linux" {ocaml-option-32bit:installed & os="linux"}
4853 "--host=i386-apple-darwin13.2.0" {ocaml-option-32bit:installed & os="macos"}
49- "PARTIALLD=ld -r -melf_i386" {ocaml-option-32bit:installed & os="linux"}
5054 "LIBS=-static" {ocaml-option-static:installed}
5155 "--disable-warn-error"
5256 ]
@@ -67,13 +71,18 @@ depopts: [
6771 "ocaml-option-32bit"
6872 "ocaml-option-afl"
6973 "ocaml-option-bytecode-only"
70- "ocaml-option-default-unsafe-string"
7174 "ocaml-option-no-flat-float-array"
7275 "ocaml-option-flambda"
7376 "ocaml-option-fp"
77+ "ocaml-option-no-compression"
7478 "ocaml-option-musl"
79+ "ocaml-option-leak-sanitizer"
80+ "ocaml-option-address-sanitizer"
7581 "ocaml-option-static"
76- "ocaml-option-nnp"
77- "ocaml-option-nnpchecker"
82+ "ocaml-option-tsan"
7883]
79- available: !(os = "macos" & arch = "arm64") & os != "win32" & arch != "arm32" & arch != "x86_32"
84+ conflicts: [
85+ "ocaml-option-32bit"
86+ "ocaml-option-bytecode-only"
87+ ]
88+ available: os != "win32"
0 commit comments