llvmPackages_10: cross-compilation support #100574
Motivation for this change
Cross compilation of clang 10. Ultimately to make bootstrap tools for platforms that use clang in their stdenv.
Tested building on
Note that presently I can't test the following due to a build cycle in gcc:
nix-build \ --argstr crossSystem aarch64-linux \ -A llvmPackages_10.clang \ -A llvmPackages_10.libcxxClang
Note that while it's possible to build a wrapper, the wrapper uses the build platform's shell so I was unable to test it.
Some interesting points:
The text was updated successfully, but these errors were encountered:
`stdenv` takes tools from the previous stage, so: 1. `pkgsBuildBuild`: `(?1, x, x)` 2. `pkgsBuildBuild.stdenv.cc`: `(?0, ?1, x)` while: 1. `pkgsBuildBuild`: `(?1, x, x)` 2. `pkgsBuildBuild.targetPackages`: `(x, x, ?2)` 3. `pkgsBuildBuild.targetPackages.stdenv.cc`: `(?1, x, x)`
Testing the one use case I'm focused on right now (cross compiling unwrapped llvmPackages_11), it looks like it works as long as I remove