diff options
Diffstat (limited to 'recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch')
-rw-r--r-- | recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch b/recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch deleted file mode 100644 index 0356e2a..0000000 --- a/recipes-devtools/clang/clang/0004-compiler-rt-cmake-mips-Do-not-specify-target-with-OE.patch +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | From b29deaeb42a8f56bb5dd72b5a8c3e2c755a6bb9e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 11 Feb 2017 17:54:33 +0000 | ||
4 | Subject: [PATCH 4/4] compiler-rt: cmake/mips: Do not specify --target with OE | ||
5 | |||
6 | OE already specifies cross compiler correctly, adding this additional | ||
7 | --target confuses the clang driver and it resorts to invoke host assembler | ||
8 | when using -no-integrated-as | ||
9 | |||
10 | Fixes errors e.g. | ||
11 | | Assembler messages: | ||
12 | | | ||
13 | | Fatal error: invalid -march= option: `mips32r2' | ||
14 | | | ||
15 | | clang-4.0: error: assembler command failed with exit code 1 | ||
16 | |||
17 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
18 | --- | ||
19 | cmake/base-config-ix.cmake | 8 ++++---- | ||
20 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
21 | |||
22 | diff --git a/cmake/base-config-ix.cmake b/cmake/base-config-ix.cmake | ||
23 | index 91fe2494b..789b80628 100644 | ||
24 | --- a/cmake/base-config-ix.cmake | ||
25 | +++ b/cmake/base-config-ix.cmake | ||
26 | @@ -191,11 +191,11 @@ macro(test_targets) | ||
27 | # clang's default CPU's. In the 64-bit case, we must also specify the ABI | ||
28 | # since the default ABI differs between gcc and clang. | ||
29 | # FIXME: Ideally, we would build the N32 library too. | ||
30 | - test_target_arch(mipsel "" "-mips32r2" "--target=mipsel-linux-gnu") | ||
31 | - test_target_arch(mips64el "" "-mips64r2" "--target=mips64el-linux-gnu" "-mabi=64") | ||
32 | + test_target_arch(mipsel "" "-mips32r2") | ||
33 | + test_target_arch(mips64el "" "-mips64r2" "-mabi=64") | ||
34 | elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "mips") | ||
35 | - test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu") | ||
36 | - test_target_arch(mips64 "" "-mips64r2" "--target=mips64-linux-gnu" "-mabi=64") | ||
37 | + test_target_arch(mips "" "-mips32r2") | ||
38 | + test_target_arch(mips64 "" "-mips64r2" "-mabi=64") | ||
39 | elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "arm") | ||
40 | if(WIN32) | ||
41 | test_target_arch(arm "" "" "") | ||
42 | -- | ||
43 | 2.20.1 | ||
44 | |||