Skip to content

Commit 507f6a2

Browse files
bleepbloopsifyglyh
authored andcommitted
mutually exclusive dune linker clause
1 parent 93c99f1 commit 507f6a2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/dune.linker.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
88
(rule
99
(target dune-linker)
10-
(enabled_if %{bin-available:lld})
10+
(enabled_if
11+
(and
12+
(= %{env:DUNE_USE_DEFAULT_LINKER=n} n)
13+
%{bin-available:lld}))
1114
(action (with-stdout-to dune-linker (echo "-fuse-ld=lld"))))
1215
1316
(rule

0 commit comments

Comments
 (0)