summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/compiler-rt_git.bb
diff options
context:
space:
mode:
authorEsben Haabendal <esben.haabendal@huawei.com>2022-06-29 16:22:56 +0200
committerKhem Raj <raj.khem@gmail.com>2022-07-05 13:22:42 -0400
commitd669d873edf68dc7440bb07096737203bb7ec505 (patch)
treecd1db5116f67e2733cd65847afff48a54b380db2 /recipes-devtools/clang/compiler-rt_git.bb
parent36c4dc63c96fb0962d3825c19b22a166db0f3e4f (diff)
downloadmeta-clang-d669d873edf68dc7440bb07096737203bb7ec505.tar.gz
clang: Fix native and nativesdk builds for hf targets
Setting the ${HF} variable based on ${TUNE_CCARGS_MFLOAT} does only make sense for target builds, as it defines arguments for target. Without this fix, building with hf machine configuration will cause problems, as native and nativesdk triplets will be include "hf", something like "x86_64hf-linux", which is wrong and not recognized by LLVM build/configuration system. Signed-off-by: Esben Haabendal <esben.haabendal@huawei.com> (cherry picked from commit 9cea73660aa56b461f96487ddcbfba5e7b64fafb)
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 9be463a..b921f1d 100644
--- a/recipes-devtools/clang/compiler-rt_git.bb
+++ b/recipes-devtools/clang/compiler-rt_git.bb
@@ -49,7 +49,8 @@ PACKAGECONFIG ??= ""
49PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF" 49PACKAGECONFIG[crt] = "-DCOMPILER_RT_BUILD_CRT:BOOL=ON,-DCOMPILER_RT_BUILD_CRT:BOOL=OFF"
50PACKAGECONFIG[profile] ="-DCOMPILER_RT_BUILD_PROFILE=ON,-DCOMPILER_RT_BUILD_PROFILE=OFF" 50PACKAGECONFIG[profile] ="-DCOMPILER_RT_BUILD_PROFILE=ON,-DCOMPILER_RT_BUILD_PROFILE=OFF"
51 51
52HF = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" 52HF = ""
53HF:class-target = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}"
53HF[vardepvalue] = "${HF}" 54HF[vardepvalue] = "${HF}"
54 55
55OECMAKE_TARGET_COMPILE = "compiler-rt" 56OECMAKE_TARGET_COMPILE = "compiler-rt"