catala/build_system/dune
Louis Gesbert bc8eda581c Add a script generating static builds
We have an obvious limitation: static builds won't support plugins. We
could resort to the classic method and do normal builds but on an old
distrib to dodge compatibility issues.

That would still be compatible with statically linking the more specific
libs, like e.g. z3.
2022-08-03 19:04:14 +02:00

36 lines
554 B
Plaintext

(library
(name ninja_utils)
(public_name ninja_utils)
(modules ninja_utils)
(libraries re))
(library
(name clerk_driver)
(public_name clerk.driver)
(libraries
catala.runtime_ocaml
catala.utils
ninja_utils
cmdliner
re
ANSITerminal)
(modules clerk_driver))
(rule
(target custom_linking.sexp)
(mode fallback)
(action
(with-stdout-to
%{target}
(echo "()"))))
(executable
(name clerk)
(public_name clerk)
(flags
(:standard
(:include custom_linking.sexp)))
(libraries clerk.driver)
(modules clerk)
(package clerk))