Skip to contentSkip to conversation

compiler-rt: Always use clang for compiler

PATCH Superseded Khem Raj 1 participant 1 message May 6, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 compiler-rt: Always use clang for compiler

This makes it build for all architectures e.g. riscv/mips/ppc etc.

---
 meta/recipes-devtools/clang/compiler-rt_git.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-devtools/clang/compiler-rt_git.bb +3 -0
index 93928541273..8b2d42e1346 100644
@@ -52,6 +52,9 @@ HF = ""
 HF:class-target = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}"
 HF[vardepvalue] = "${HF}"
 
+CC = "${CCACHE}${HOST_PREFIX}clang ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
+CXX = "${CCACHE}${HOST_PREFIX}clang++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}"
+
 OECMAKE_TARGET_COMPILE = "compiler-rt"
 OECMAKE_TARGET_INSTALL = "install-compiler-rt install-compiler-rt-headers"
 OECMAKE_SOURCEPATH = "${S}/llvm"