Revision 0da8effaeec4f422d1a4414ab7b16aa069a4b838 authored by Andrea Cerone on 15 June 2022, 18:33:19 UTC, committed by Marge Bot on 21 June 2022, 23:02:44 UTC
1 parent 2f296a2
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