Skip to content

Commit 2c70f34

Browse files
authored
Merge pull request #17865 from MinaProtocol/leon/mutually-exclusive-dune-linker
fix: mutually exclusive dune linker clause
2 parents 93c99f1 + 507f6a2 commit 2c70f34

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)