pkgsLLVM: use target platform to fix cross

This commit is contained in:
Tristan Ross 2024-07-26 10:48:35 -07:00
parent d7136b1c84
commit 2551138e30
No known key found for this signature in database
GPG key ID: B09C422035669AF8

View file

@ -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";
};