this repo has no description
1opam-version: "2.0" 2license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception" 3synopsis: "OCaml 5.1.1, with ThreadSanitizer 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://github.com/ocaml/ocaml" 17bug-reports: "https://github.com/ocaml/ocaml/issues" 18dev-repo: "git+https://github.com/ocaml-multicore/ocaml-tsan.git#5.1.1+tsan" 19depends: [ 20 "ocaml" {= "5.1.1" & post} 21 "base-unix" {post} 22 "base-bigarray" {post} 23 "base-threads" {post} 24 "base-domains" {post} 25 "base-nnp" {post} 26 "ocaml-beta" {opam-version < "2.1.0"} 27 "conf-unwind" 28] 29conflict-class: "ocaml-core-compiler" 30flags: [ compiler avoid-version ] 31setenv: CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs" 32build-env: [ 33 [LSAN_OPTIONS = "detect_leaks=0,exitcode=0"] 34 [ASAN_OPTIONS = "detect_leaks=0,exitcode=0"] 35] 36build: [ 37 [ 38 "./configure" 39 "--prefix=%{prefix}%" 40 "--docdir=%{doc}%/ocaml" 41 "-C" 42 "--disable-flat-float-array" {ocaml-option-no-flat-float-array:installed} 43 "--enable-flambda" {ocaml-option-flambda:installed} 44 "--enable-frame-pointers" {ocaml-option-fp:installed} 45 "CC=cc" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="openbsd")} 46 "CC=clang" {!ocaml-option-32bit:installed & !ocaml-option-musl:installed & (os="macos")} 47 "CC=musl-gcc" {ocaml-option-musl:installed & os-distribution!="alpine"} 48 "CFLAGS=-Os" {ocaml-option-musl:installed} 49 "--enable-tsan" 50 "ASPP=musl-gcc -c" {ocaml-option-musl:installed & os-distribution!="alpine"} 51 "LIBS=-static" {ocaml-option-static:installed} 52 "--disable-warn-error" 53 ] 54 [make "-j%{jobs}%"] 55] 56install: [make "install"] 57url { 58 src: "https://github.com/ocaml-multicore/ocaml-tsan/archive/5.1.1+tsan.tar.gz" 59 checksum: "sha256=4fde4255b581496a1b92ccc699b5a12db6663c50afb69d6ac25207c8905d6c04" 60} 61conflicts: [ 62 "ocaml-option-afl" 63 "ocaml-option-bytecode-only" 64 "ocaml-option-32bit" 65 "ocaml-option-leak-sanitizer" 66 "ocaml-option-address-sanitizer" 67] 68depopts: [ 69 "ocaml-option-32bit" 70 "ocaml-option-afl" 71 "ocaml-option-bytecode-only" 72 "ocaml-option-no-flat-float-array" 73 "ocaml-option-flambda" 74 "ocaml-option-musl" 75 "ocaml-option-leak-sanitizer" 76 "ocaml-option-address-sanitizer" 77 "ocaml-option-static" 78] 79extra-source "ocaml-variants.install" { 80 src: 81 "https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/ocaml-variants/ocaml-variants.install" 82 checksum: [ 83 "sha256=79f2a1a5044a91350a0eb6ce12e261a72a2855c094c425cddf3860e58c486678" 84 "md5=3e969b841df1f51ca448e6e6295cb451" 85 ] 86} 87# Back-ported ocaml/ocaml#13100 (5.2.0) - fixes the misdetection of zstd with 88# ocaml-option-musl 89patches: ["zstd-detection.patch"] 90extra-source "zstd-detection.patch" { 91 src: "https://github.com/ocaml/ocaml/commit/baf65b91c51bb04b09ecc98b94ddd4ba3b446912.patch?full_index=1" 92 checksum: "sha256=958e061bc3b967e32a5606d5109ed7faacb9b793fe2de0e8f8697c23a178c5cf" 93} 94available: arch = "x86_64" & (os = "linux" | os = "macos")