Skip to content

Commit 667e0dd

Browse files
committed
compiler-rt/libcxx: Use clang as compiler
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
1 parent d802c21 commit 667e0dd

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

meta/recipes-devtools/clang/compiler-rt-sanitizers_git.bb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ BUILD_CXX = "${CCACHE}${HOST_PREFIX}clang++ ${BUILD_CC_ARCH}$"
3636
CFLAGS += "${COMPILER_RT}"
3737
CXXFLAGS += "${COMPILER_RT} ${LIBCPLUSPLUS}"
3838

39+
TOOLCHAIN = "clang"
40+
3941
DEPENDS += "ninja-native virtual/crypt compiler-rt"
4042
DEPENDS:append:class-native = " clang-native libxcrypt-native libcxx-native"
4143
DEPENDS:append:class-nativesdk = " virtual/cross-c++ clang-native clang-crosssdk-${SDK_SYS} nativesdk-libxcrypt nativesdk-gcc-runtime"

meta/recipes-devtools/clang/compiler-rt_git.bb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ BUILD_CXX = "${CCACHE}clang++ ${BUILD_CC_ARCH}"
5858
LDFLAGS += "${COMPILER_RT} ${UNWINDLIB}"
5959
CXXFLAGS += "${LIBCPLUSPLUS}"
6060

61+
TOOLCHAIN = "clang"
62+
6163
def get_compiler_rt_arch(bb, d):
6264
if bb.utils.contains('TUNE_FEATURES', 'armv5 thumb dsp', True, False, d):
6365
return 'armv5te'

meta/recipes-devtools/clang/libcxx_git.bb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ BUILD_CXX = "${CCACHE}clang++ ${BUILD_CC_ARCH}"
5454
LDFLAGS += "${COMPILER_RT} ${UNWINDLIB} ${LIBCPLUSPLUS}"
5555
CXXFLAGS += "${LIBCPLUSPLUS}"
5656

57+
TOOLCHAIN = "clang"
58+
5759
OECMAKE_SOURCEPATH = "${S}/llvm"
5860
EXTRA_OECMAKE += "\
5961
-DCMAKE_BUILD_TYPE=RelWithDebInfo \

0 commit comments

Comments
 (0)