Is there an easy way to set library_flags when building on macOS but not doing that otherwise?
E.g. I'd like to express something like this
(library_flags
(if (= %{os_type} macosx)
(-cclib -Wl,-keep_dwarf_unwind)))
Thank you in advance.
You should be able to use (:include <filename>) (where <filename> can be generated by another rule), see https://jbuilder.readthedocs.io/en/latest/concepts.html#id2
We should probably add the (if ...) form though. Included files are a bit heavy for such cases
Yes, please! I noticed that Dune has boolean constructors, but not boolean eliminators (at least not general ones).
Most helpful comment
You should be able to use
(:include <filename>)(where<filename>can be generated by another rule), see https://jbuilder.readthedocs.io/en/latest/concepts.html#id2