this repo has no description
1opam-version: "2.0"
2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
3synopsis: "OCaml 5.1.0 release candidate 3, with ThreadSanitizer support"
4maintainer: [
5 "David Allsopp <david@tarides.com>"
6 "Florian Angeletti <florian.angeletti@inria.fr>"
7]
8authors: ["Xavier Leroy" "Damien Doligez" "Alain Frisch" "Jacques Garrigue" "Didier Rémy" "Jérôme Vouillon"]
9homepage: "https://github.com/ocaml/ocaml"
10bug-reports: "https://github.com/ocaml/ocaml"
11dev-repo: "git+https://github.com/ocaml-multicore/ocaml-tsan.git#5.1.0-rc3+tsan"
12depends: [
13 "ocaml" {= "5.1.0" & post}
14 "base-unix" {post}
15 "base-bigarray" {post}
16 "base-threads" {post}
17 "base-domains" {post}
18 "base-nnp" {post}
19 "ocaml-beta" {opam-version < "2.1.0"}
20 "conf-unwind"
21]
22conflict-class: "ocaml-core-compiler"
23flags: [ compiler avoid-version ]
24setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"
25build-env: [
26 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"]
27 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"]
28]
29build: [
30 [
31 "./configure"
32 "--prefix=%{prefix}%"
33 "--docdir=%{doc}%/ocaml"
34 "-C"
35 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed}
36 "--enable-flambda" {ocaml-option-flambda:installed}
37 "--enable-frame-pointers" {ocaml-option-fp:installed}
38 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd")}
39 "CC=clang" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="macos")}
40 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"}
41 "CFLAGS=-Os" {ocaml-option-musl:installed}
42 "--enable-tsan"
43 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"}
44 "LIBS=-static" {ocaml-option-static:installed}
45 "--disable-warn-error"
46 ]
47 [make "-j%{jobs}%"]
48]
49install: [make "install"]
50url {
51 src: "https://github.com/ocaml-multicore/ocaml-tsan/archive/5.1.0-rc3+tsan.tar.gz"
52 checksum: "sha256=d5b80d65ace8912f060b14d552b06ea1df9ef28f0cd0e70a951bb5398fb0d491"
53}
54post-messages: [
55 "A failure in the middle of the build may be caused by build parallelism
56 (enabled by default).
57 Please file a bug report at https://github.com/ocaml/opam-repository/issues"
58 {failure & jobs > 1}
59 "You can try installing again including --jobs=1
60 to force a sequential build instead."
61 {failure & jobs > 1 & opam-version >= "2.0.5"}
62]
63conflicts: [
64 "ocaml-option-afl"
65 "ocaml-option-bytecode-only"
66 "ocaml-option-32bit"
67 "ocaml-option-leak-sanitizer"
68 "ocaml-option-address-sanitizer"
69]
70depopts: [
71 "ocaml-option-32bit"
72 "ocaml-option-afl"
73 "ocaml-option-bytecode-only"
74 "ocaml-option-no-flat-float-array"
75 "ocaml-option-flambda"
76 "ocaml-option-musl"
77 "ocaml-option-leak-sanitizer"
78 "ocaml-option-address-sanitizer"
79 "ocaml-option-static"
80]
81
82
83patches: [ "check-tsan-distinguish-volatile.patch" ]
84extra-source "check-tsan-distinguish-volatile.patch" {
85 src: "https://github.com/ocaml-multicore/ocaml-tsan/commit/abb8fdb186773b2fc6e4e41b122d1df4c29b058c.patch?full_index=1"
86 checksum: "sha256=efa4449d37c3843c488caffcd06f5ebd2a7569e06f9cf98f79458506c549bd2c"
87}
88available: os != "win32"
89extra-source "ocaml-variants.install" {
90 src:
91 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install"
92 checksum: [
93 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678"
94 "md5=3e969b841df1f51ca448e6e6295cb451"
95 ]
96}
97x-maintained: false