Revision 1bcde7e4657c0de30408c3400509ae0a05d1feb2 authored by Swann Moreau on 17 August 2022, 14:30:06 UTC, committed by Nicolas BACQUEY on 18 August 2022, 08:42:31 UTC
1 parent 9194826
Raw File
dune
(vendored_dirs vendors)
(data_only_dirs _opam-repo-for-release)
(env
 (_
  (binaries (%{workspace_root}/src/tooling/node_wrapper.exe as node))))

; This file is included in the link_flags stanza of binaries for which
; we want a static build.
; If the current dune profile is "static", it contains the flag
; telling the compiler to compile static executables.
; Else it contains no flags.
(rule
 (target static-link-flags.sexp)
 (action (with-stdout-to %{target}
  (system "[ '%{profile}' = 'static' ] && echo '(-ccopt -static)' || echo '()'"))))
back to top