summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2025-07-10 23:42:32 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-07-14 17:49:48 +0100
commitef31bc3074fa51efd46a8f4b17d66a73b05b4ce3 (patch)
treeba0b6669868e068acb6c5b13637ef80415b3ad38
parent510b5f71cc224fb6fffb38156fa01a1991234eeb (diff)
downloadpoky-ef31bc3074fa51efd46a8f4b17d66a73b05b4ce3.tar.gz
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>
-rw-r--r--meta/recipes-devtools/clang/compiler-rt_git.bb7
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/recipes-devtools/clang/compiler-rt_git.bb b/meta/recipes-devtools/clang/compiler-rt_git.bb
index 342a7b0e95..4da85f2937 100644
--- a/meta/recipes-devtools/clang/compiler-rt_git.bb
+++ b/meta/recipes-devtools/clang/compiler-rt_git.bb
@@ -35,9 +35,9 @@ DEPENDS:remove:class-native = "libcxx-native compiler-rt-native"
35UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" 35UNWINDLIB:class-nativesdk = "--unwindlib=libgcc"
36COMPILER_RT:class-nativesdk = "-rtlib=libgcc" 36COMPILER_RT:class-nativesdk = "-rtlib=libgcc"
37LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++" 37LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++"
38UNWINDLIB:class-native = "" 38UNWINDLIB:class-native = "--unwindlib=libgcc"
39COMPILER_RT:class-native = "" 39COMPILER_RT:class-native = "-rtlib=libgcc"
40LIBCPLUSPLUS:class-native = "" 40LIBCPLUSPLUS:class-native = "-stdlib=libstdc++"
41UNWINDLIB:class-target = "--unwindlib=libgcc" 41UNWINDLIB:class-target = "--unwindlib=libgcc"
42COMPILER_RT:class-target = "-rtlib=libgcc" 42COMPILER_RT:class-target = "-rtlib=libgcc"
43LIBCPLUSPLUS:class-target = "-stdlib=libstdc++" 43LIBCPLUSPLUS:class-target = "-stdlib=libstdc++"
@@ -57,6 +57,7 @@ LDFLAGS += "${COMPILER_RT} ${UNWINDLIB}"
57CXXFLAGS += "${LIBCPLUSPLUS}" 57CXXFLAGS += "${LIBCPLUSPLUS}"
58 58
59TOOLCHAIN = "clang" 59TOOLCHAIN = "clang"
60TOOLCHAIN_NATIVE = "clang"
60 61
61def get_compiler_rt_arch(bb, d): 62def get_compiler_rt_arch(bb, d):
62 if bb.utils.contains('TUNE_FEATURES', 'armv5 thumb dsp', True, False, d): 63 if bb.utils.contains('TUNE_FEATURES', 'armv5 thumb dsp', True, False, d):