Skip to content

Commit

Permalink
Merge branch 'main' into merlin-add-contxts-cmds
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Chávarri <[email protected]>
  • Loading branch information
jchavarri committed May 3, 2024
2 parents 666e525 + 1d981a0 commit 1ee8fe2
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test/blackbox-tests/test-cases/cxx-flags.t/dune
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,26 @@
(libraries quad)
(foreign_stubs (language cxx) (names bazexe))
(modules main))

(env
(_
(ocamlopt_flags
:standard
(:include extra_flags.sexp))))

(rule
(enabled_if
(or
(<> %{system} macosx)
(<> %{architecture} arm64)))
(action
(write-file extra_flags.sexp "()")))

; with XCode 15+, the linker complains about duplicate -lc++ libraries
(rule
(enabled_if
(and
(= %{system} macosx)
(= %{architecture} arm64)))
(action
(write-file extra_flags.sexp "(-ccopt -Wl,-no_warn_duplicate_libraries)")))

0 comments on commit 1ee8fe2

Please sign in to comment.