Merge pull request #330227 from ExpidusOS/fix/pkgsllvm-cross

pkgsLLVM: use target platform to fix cross
This commit is contained in:
tomberek 2024-07-30 13:17:50 -04:00 committed by GitHub
commit 90f4da918f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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