Skip to content

Commit dec52a2

Browse files
committed
Fix using lld in shell-for
Before we didn't actually include lld in the environment. Let's add that to the nativeBuildInputs if the compiler is using lld.
1 parent 2a5e699 commit dec52a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/shell-for.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ in
124124
++ nativeBuildInputs
125125
++ mkDrvArgs.nativeBuildInputs or []
126126
++ lib.attrValues (buildPackages.haskell-nix.tools compiler.nix-name tools)
127-
++ (lib.optional (ghc.useLdLld or false) llvmPackages.bintools)
127+
++ (lib.optional (ghcEnv.baseGhc.useLdLld or false) llvmPackages.bintools)
128128
# If this shell is a cross compilation shell include
129129
# wrapper script for running cabal build with appropriate args.
130130
++ lib.optional (ghcEnv.targetPrefix != "") (

0 commit comments

Comments
 (0)