summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/compiler-rt_git.bb
diff options
context:
space:
mode:
authorEsben Haabendal <esben.haabendal@huawei.com>2022-04-12 13:41:25 +0200
committerKhem Raj <raj.khem@gmail.com>2022-04-20 15:40:24 -0700
commit74c7f6524cddd258f916e8e4acfb9e49d1870b65 (patch)
tree8f2388be822212a06233b618d581f03e5ffb4f00 /recipes-devtools/clang/compiler-rt_git.bb
parentd748f542e27d58fcbcee9d1482d71cd9c38bf06b (diff)
downloadmeta-clang-74c7f6524cddd258f916e8e4acfb9e49d1870b65.tar.gz
compiler-rt: Build builtins only for the default target
We were never really supposed to build for multiple target architectures in one compiler-rt build, so let's use the feature created to do exactly that. This also happens to fix building for ARM softfp ABI builds, where the target architecture guessing logics ends up with: -- Builtin supported architectures: arm;armv6m And later on bailing out because of duplicate ninja rules: ninja: error: build.ninja:56765: multiple rules generate lib/clang/14.0.0/lib/linux/libclang_rt.builtins-arm.a [-w dupbuild=err] Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com>
Diffstat (limited to 'recipes-devtools/clang/compiler-rt_git.bb')
-rw-r--r--recipes-devtools/clang/compiler-rt_git.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb
index cf4de8f..cb72b5a 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -50,7 +50,8 @@ OECMAKE_TARGET_COMPILE = "compiler-rt"
50OECMAKE_TARGET_INSTALL = "install-compiler-rt install-compiler-rt-headers" 50OECMAKE_TARGET_INSTALL = "install-compiler-rt install-compiler-rt-headers"
51OECMAKE_SOURCEPATH = "${S}/llvm" 51OECMAKE_SOURCEPATH = "${S}/llvm"
52EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=OFF \ 52EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=OFF \
53 -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ 53 -DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON \
54 -DCMAKE_C_COMPILER_TARGET=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \
54 -DCOMPILER_RT_BUILD_XRAY=OFF \ 55 -DCOMPILER_RT_BUILD_XRAY=OFF \
55 -DCOMPILER_RT_BUILD_SANITIZERS=OFF \ 56 -DCOMPILER_RT_BUILD_SANITIZERS=OFF \
56 -DCOMPILER_RT_BUILD_MEMPROF=OFF \ 57 -DCOMPILER_RT_BUILD_MEMPROF=OFF \