summaryrefslogtreecommitdiffstats
path: root/recipes-devtools/clang/compiler-rt/0001-Remove-fatal-check-for-explicit-COMPILER_RT_DEFAULT_.patch
blob: d741b55d23cd4a66fb873a219b1cd5b675eee971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From 14f4f8e55b363037ae881084e4594934a869cf5d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Tue, 10 May 2016 10:37:55 -0700
Subject: [PATCH] Remove fatal check for explicit
 COMPILER_RT_DEFAULT_TARGET_ARCH

In OE, we do not deduce float-abi via target triplet
but via a CFLAGS option, and we do not have possibility
to build both hf and sf in same toolchain, therefore lets
ignore the test, we are doing the right job from recipe

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 cmake/config-ix.cmake | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake
index 264085e..299682d 100644
--- a/cmake/config-ix.cmake
+++ b/cmake/config-ix.cmake
@@ -128,10 +128,6 @@ macro(test_target_arch arch def)
   endif()
   if(${CAN_TARGET_${arch}})
     list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})
-  elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "${arch}" AND
-         COMPILER_RT_HAS_EXPLICIT_DEFAULT_TARGET_TRIPLE)
-    # Bail out if we cannot target the architecture we plan to test.
-    message(FATAL_ERROR "Cannot compile for ${arch}:\n${TARGET_${arch}_OUTPUT}")
   endif()
 endmacro()
 
-- 
2.8.2