From d6d4f6b18ebb9f315427187154d1e5e2f3678a80 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 27 Jul 2016 01:48:52 -0700 Subject: compiler-rt: Clang uses arm and armhf to differentiate hard-float/soft-float Add HF to find out the hf or sf configuration on OE we use arm for TARGET_ARCH in both cases. compiler-rt however expects arm and armhf Signed-off-by: Khem Raj --- recipes-devtools/clang/compiler-rt_git.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'recipes-devtools/clang/compiler-rt_git.bb') diff --git a/recipes-devtools/clang/compiler-rt_git.bb b/recipes-devtools/clang/compiler-rt_git.bb index d175c23..6b67d00 100644 --- a/recipes-devtools/clang/compiler-rt_git.bb +++ b/recipes-devtools/clang/compiler-rt_git.bb @@ -32,8 +32,10 @@ inherit cmake pkgconfig pythonnative THUMB_TUNE_CCARGS = "" #TUNE_CCARGS += "-nostdlib" +HF = "${@ bb.utils.contains('TUNE_CCARGS_MFLOAT', 'hard', 'hf', '', d)}" +HF[vardepvalue] = "${HF}" EXTRA_OECMAKE += "-DCOMPILER_RT_STANDALONE_BUILD=ON \ - -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_SYS} \ + -DCOMPILER_RT_DEFAULT_TARGET_TRIPLE=${HOST_ARCH}${HF}${HOST_VENDOR}-${HOST_OS} \ " EXTRA_OECMAKE_append_libc-glibc = " -DCOMPILER_RT_BUILD_SANITIZERS=ON " -- cgit v1.2.3-54-g00ecf