Loading
rustc: fix cross compilation of LLVM with shared libs
The PR which fixed `useLLVM` native rustc builds (#320432)
also broke cross builds.
The C compiler it used to produce `llvmShared` and `llvmPackages`,
`llvmPackages.clangUseLLVM`, was built to run on the host
and create binaries for the target (`pkgsHostTarget`).
Instead, the compiler should be built to run on the build
machine and produce binaries for the host machine (`pkgsBuildHost`).
Replace the overridden compilers with ones from `pkgsBuildHost`
Co-Authored-By:
Artemis Tosini <me@artem.ist>