summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-01-02 22:42:23 +0000
committerJames Le Cuirot <chewi@gentoo.org>2023-01-03 08:54:21 +0000
commitecbd50481557ed916cd5f68d21acd2404d54fc24 (patch)
treee7a40cdf67fc13d7c1d54f86fd0fd9649652c54e /eclass/toolchain-funcs.eclass
parentdev-python/pip-run: Keyword 10.0.2 riscv, #889038 (diff)
downloadgentoo-ecbd50481557ed916cd5f68d21acd2404d54fc24.tar.gz
gentoo-ecbd50481557ed916cd5f68d21acd2404d54fc24.tar.bz2
gentoo-ecbd50481557ed916cd5f68d21acd2404d54fc24.zip
sys-devel/llvm: Fix cross-compiling by applying the build environment
When you cross-compile LLVM, it invokes CMake a second time during src_compile to perform a "native" build. This invocation does not make use of a toolchain file and relies on environment variables such as CC and CXX to determine the compiler instead. These will often point to the cross-compiler rather than the native/build compiler, leading to a failure when it tries to link the build system's libzstd. The toolchain file provided in src_configure sets up the cross-compiler as necessary, so there is no harm in pointing CC and friends to the native/build compiler during src_compile. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
0 files changed, 0 insertions, 0 deletions