mirror of
https://git.yoctoproject.org/poky
synced 2026-09-13 00:49:33 +02:00
compiler-rt: Use clang for native compile as well
(From OE-Core rev: 0c3ab984e72db424aa2684f5e2073a165b4b0910) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -35,9 +35,9 @@ DEPENDS:remove:class-native = "libcxx-native compiler-rt-native"
|
|||||||
UNWINDLIB:class-nativesdk = "--unwindlib=libgcc"
|
UNWINDLIB:class-nativesdk = "--unwindlib=libgcc"
|
||||||
COMPILER_RT:class-nativesdk = "-rtlib=libgcc"
|
COMPILER_RT:class-nativesdk = "-rtlib=libgcc"
|
||||||
LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++"
|
LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++"
|
||||||
UNWINDLIB:class-native = ""
|
UNWINDLIB:class-native = "--unwindlib=libgcc"
|
||||||
COMPILER_RT:class-native = ""
|
COMPILER_RT:class-native = "-rtlib=libgcc"
|
||||||
LIBCPLUSPLUS:class-native = ""
|
LIBCPLUSPLUS:class-native = "-stdlib=libstdc++"
|
||||||
UNWINDLIB:class-target = "--unwindlib=libgcc"
|
UNWINDLIB:class-target = "--unwindlib=libgcc"
|
||||||
COMPILER_RT:class-target = "-rtlib=libgcc"
|
COMPILER_RT:class-target = "-rtlib=libgcc"
|
||||||
LIBCPLUSPLUS:class-target = "-stdlib=libstdc++"
|
LIBCPLUSPLUS:class-target = "-stdlib=libstdc++"
|
||||||
@@ -57,6 +57,7 @@ LDFLAGS += "${COMPILER_RT} ${UNWINDLIB}"
|
|||||||
CXXFLAGS += "${LIBCPLUSPLUS}"
|
CXXFLAGS += "${LIBCPLUSPLUS}"
|
||||||
|
|
||||||
TOOLCHAIN = "clang"
|
TOOLCHAIN = "clang"
|
||||||
|
TOOLCHAIN_NATIVE = "clang"
|
||||||
|
|
||||||
def get_compiler_rt_arch(bb, d):
|
def get_compiler_rt_arch(bb, d):
|
||||||
if bb.utils.contains('TUNE_FEATURES', 'armv5 thumb dsp', True, False, d):
|
if bb.utils.contains('TUNE_FEATURES', 'armv5 thumb dsp', True, False, d):
|
||||||
|
|||||||
Reference in New Issue
Block a user