mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-27 00:21:44 +02:00
eclass/llvm: Sync with Gentoo
It's from Gentoo commit 8e9c05ddfcd74be3b53c7c4c2fbc799a9ab7fa61.
This commit is contained in:
parent
b913283f28
commit
51940420ae
@ -250,6 +250,12 @@ llvm_pkg_setup() {
|
||||
llvm_fix_tool_path ADDR2LINE AR AS LD NM OBJCOPY OBJDUMP RANLIB
|
||||
llvm_fix_tool_path READELF STRINGS STRIP
|
||||
|
||||
# Set LLVM_CONFIG to help Meson (bug #907965) but only do it
|
||||
# for empty ESYSROOT (as a proxy for "are we cross-compiling?").
|
||||
if [[ -z ${ESYSROOT} ]] ; then
|
||||
llvm_fix_tool_path LLVM_CONFIG
|
||||
fi
|
||||
|
||||
local prefix=${ESYSROOT}
|
||||
local llvm_path=${prefix}/usr/lib/llvm/${LLVM_SLOT}/bin
|
||||
local IFS=:
|
||||
|
Loading…
x
Reference in New Issue
Block a user