mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 06:49:32 +02:00
compiler-rt,libcxx: Use clang for native-libcxx and gcc for compiler-rt-native
compiler-rt configure calls for c++ compiler which can cause C++ runtime to not be detected on some Yocto autobuilder workers running ubuntu 24.04 therefore let it use gcc for native version Set TOOLCHAIN_NATIVE for using clang for libcxx (From OE-Core rev: d54512c1c0a98516077b77d5414af47d8c2b8c39) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -25,6 +25,7 @@ DEPENDS += "ninja-native"
|
||||
DEPENDS:append:class-target = " virtual/cross-c++ clang-cross-${TARGET_ARCH} virtual/${MLPREFIX}libc virtual/${MLPREFIX}compilerlibs"
|
||||
DEPENDS:append:class-nativesdk = " virtual/cross-c++ clang-crosssdk-${SDK_SYS} nativesdk-compiler-rt"
|
||||
DEPENDS:append:class-native = " clang-native compiler-rt-native"
|
||||
DEPENDS:remove:class-native = "libcxx-native"
|
||||
|
||||
COMPILER_RT ?= "${@bb.utils.contains("PACKAGECONFIG", "compiler-rt", "-rtlib=compiler-rt", "-rtlib=libgcc", d)}"
|
||||
UNWINDLIB ?= "${@bb.utils.contains("PACKAGECONFIG", "unwind", "-unwindlib=none", "-unwindlib=libgcc", d)}"
|
||||
@@ -55,6 +56,7 @@ LDFLAGS += "${COMPILER_RT} ${UNWINDLIB} ${LIBCPLUSPLUS}"
|
||||
CXXFLAGS += "${LIBCPLUSPLUS}"
|
||||
|
||||
TOOLCHAIN = "clang"
|
||||
TOOLCHAIN_NATIVE = "clang"
|
||||
|
||||
OECMAKE_SOURCEPATH = "${S}/llvm"
|
||||
EXTRA_OECMAKE += "\
|
||||
|
||||
Reference in New Issue
Block a user