diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix index 78c22d4f70e2..1cedd8dd1845 100644 --- a/pkgs/top-level/stage.nix +++ b/pkgs/top-level/stage.nix @@ -201,7 +201,7 @@ let # Bootstrap a cross stdenv using the LLVM toolchain. # This is currently not possible when compiling natively, # so we don't need to check hostPlatform != buildPlatform. - crossSystem = stdenv.targetPlatform // { + crossSystem = stdenv.hostPlatform // { useLLVM = true; linker = "lld"; };