From 2551138e307aba146d4d2a08f2be7613198f77d8 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Fri, 26 Jul 2024 10:48:35 -0700 Subject: [PATCH] pkgsLLVM: use target platform to fix cross --- pkgs/top-level/stage.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/stage.nix b/pkgs/top-level/stage.nix index b0c7ec03827b..dcf177df4365 100644 --- a/pkgs/top-level/stage.nix +++ b/pkgs/top-level/stage.nix @@ -197,7 +197,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.hostPlatform // { + crossSystem = stdenv.targetPlatform // { useLLVM = true; linker = "lld"; };