diff options
author | Khem Raj <raj.khem@gmail.com> | 2025-07-10 23:42:32 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-14 17:49:48 +0100 |
commit | ef31bc3074fa51efd46a8f4b17d66a73b05b4ce3 (patch) | |
tree | ba0b6669868e068acb6c5b13637ef80415b3ad38 | |
parent | 510b5f71cc224fb6fffb38156fa01a1991234eeb (diff) | |
download | poky-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.bb | 7 |
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" | |||
35 | UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" | 35 | UNWINDLIB:class-nativesdk = "--unwindlib=libgcc" |
36 | COMPILER_RT:class-nativesdk = "-rtlib=libgcc" | 36 | COMPILER_RT:class-nativesdk = "-rtlib=libgcc" |
37 | LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++" | 37 | LIBCPLUSPLUS:class-nativesdk = "-stdlib=libstdc++" |
38 | UNWINDLIB:class-native = "" | 38 | UNWINDLIB:class-native = "--unwindlib=libgcc" |
39 | COMPILER_RT:class-native = "" | 39 | COMPILER_RT:class-native = "-rtlib=libgcc" |
40 | LIBCPLUSPLUS:class-native = "" | 40 | LIBCPLUSPLUS:class-native = "-stdlib=libstdc++" |
41 | UNWINDLIB:class-target = "--unwindlib=libgcc" | 41 | UNWINDLIB:class-target = "--unwindlib=libgcc" |
42 | COMPILER_RT:class-target = "-rtlib=libgcc" | 42 | COMPILER_RT:class-target = "-rtlib=libgcc" |
43 | LIBCPLUSPLUS:class-target = "-stdlib=libstdc++" | 43 | LIBCPLUSPLUS:class-target = "-stdlib=libstdc++" |
@@ -57,6 +57,7 @@ LDFLAGS += "${COMPILER_RT} ${UNWINDLIB}" | |||
57 | CXXFLAGS += "${LIBCPLUSPLUS}" | 57 | CXXFLAGS += "${LIBCPLUSPLUS}" |
58 | 58 | ||
59 | TOOLCHAIN = "clang" | 59 | TOOLCHAIN = "clang" |
60 | TOOLCHAIN_NATIVE = "clang" | ||
60 | 61 | ||
61 | def get_compiler_rt_arch(bb, d): | 62 | def 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): |