diff --git a/compiler/ghc/default.nix b/compiler/ghc/default.nix index 78070e8cf..18782b3be 100644 --- a/compiler/ghc/default.nix +++ b/compiler/ghc/default.nix @@ -463,7 +463,6 @@ stdenv.mkDerivation (rec { '' + lib.optionalString useLLVM '' export LLC="${llvmPackages.llvm}/bin/llc" export OPT="${llvmPackages.llvm}/bin/opt" - export LLVMAS="${llvmPackages.llvm}/bin/llvm-as" '' + lib.optionalString (!stdenv.isDarwin) '' export NIX_LDFLAGS+=" -rpath $out/lib/${targetPrefix}ghc-${ghc-version}" '' + lib.optionalString stdenv.isDarwin ''