config.ml
config.ml copied to clipboard
conditional compilation via attributes for OCaml
Currently, this is unsupported: ```ocaml let foo a = function | 0 -> "0" | 1 -> "1" [@@cfg (disable=true)] ``` And the expected behavior is that we can remove...
Currently, this is unsupported: ```ocaml let foo a = match a with | 0 -> "0" | 1 -> "1" [@@cfg (disable=true)] ``` And the expected behavior is that we...
Context: In DkCoder https://discuss.ocaml.org/t/ann-dkcoder-0-1-0/14327 I'm exposing OS/ABI from https://github.com/diskuv/dkml-c-probe as environment variables to scripts, and I've been planning on exposing a `cfg` mechanism. For a lot of reasons 1 I'll...
This PR is a patch for an upcoming release of ppxlib where the internal AST is [bumped from 4.14 to 5.2](https://github.com/ocaml-ppx/ppxlib/pull/514). Until that is merged and released, there is no...