opam-version: "2.0" synopsis: "Set OCaml to be compiled with address sanitizer" description: """ This configuration package enables memory leak sanitzation using the -fsanitize=leak gcc and clang option. """ authors: [ "David Allsopp" "Louis Gesbert" ] homepage: "https://opam.ocaml.org" bug-reports: "https://github.com/ocaml/opam-repository/issues" license: "CC0-1.0+" post-messages: """ Make sure to set ASAN_OPTIONS=detect_leaks=0,exitcode=0 while compiling and to unset it before running compiled binaries. """ depends: [ "ocaml-variants" {post & >= "5.0"} ] conflicts: [ "ocaml-option-32bit" "ocaml-option-afl" "ocaml-option-bytecode-only" "ocaml-option-default-unsafe-string" "ocaml-option-flambda" "ocaml-option-musl" "ocaml-option-no-flat-float-array" "ocaml-option-spacetime" "ocaml-option-static" "ocaml-option-nnp" "ocaml-option-nnpchecker" "ocaml-option-fp" "ocaml-option-leak-sanitizer" ] available: [ os = "macos" | os = "linux" ] maintainer: "David Allsopp " flags: compiler