Files
gentoo/sys-devel
James Le Cuirot ecbd504815 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>
2023-01-03 08:54:21 +00:00
..
2022-12-28 00:32:18 +00:00
…
…
2023-01-03 03:37:55 +00:00
2022-12-13 05:09:23 +00:00
…
2022-12-30 07:31:54 +00:00
…
…