summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2018-09-27 07:17:00 +0000
committerSimon Atanasyan <simon@atanasyan.com>2018-09-27 07:17:00 +0000
commitab4f15e20c5ff05c040fbb2ba7f4686d77fd58c2 (patch)
treea2c5d3e6b79f8de121c214ae02cfedcef23c5267
parente40db05b27750d40a61d7b9d8be8d18b23218941 (diff)
downloadbcm5719-llvm-ab4f15e20c5ff05c040fbb2ba7f4686d77fd58c2.tar.gz
bcm5719-llvm-ab4f15e20c5ff05c040fbb2ba7f4686d77fd58c2.zip
[compiler-rt][cmake][mips] Use -mabi option to select target architecture
The `--target` option is rejected by GCC starting from version 7.0. It's shorter and more portable to use `mabi` option to select MIPS ABI for testing target architecture. Clang supports that starting from r343169. llvm-svn: 343182
-rw-r--r--compiler-rt/cmake/base-config-ix.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler-rt/cmake/base-config-ix.cmake b/compiler-rt/cmake/base-config-ix.cmake
index 91fe2494b47..b92e29a2e22 100644
--- a/compiler-rt/cmake/base-config-ix.cmake
+++ b/compiler-rt/cmake/base-config-ix.cmake
@@ -191,11 +191,11 @@ macro(test_targets)
# clang's default CPU's. In the 64-bit case, we must also specify the ABI
# since the default ABI differs between gcc and clang.
# FIXME: Ideally, we would build the N32 library too.
- test_target_arch(mipsel "" "-mips32r2" "--target=mipsel-linux-gnu")
- test_target_arch(mips64el "" "-mips64r2" "--target=mips64el-linux-gnu" "-mabi=64")
+ test_target_arch(mipsel "" "-mips32r2" "-mabi=32")
+ test_target_arch(mips64el "" "-mips64r2" "-mabi=64")
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "mips")
- test_target_arch(mips "" "-mips32r2" "--target=mips-linux-gnu")
- test_target_arch(mips64 "" "-mips64r2" "--target=mips64-linux-gnu" "-mabi=64")
+ test_target_arch(mips "" "-mips32r2" "-mabi=32")
+ test_target_arch(mips64 "" "-mips64r2" "-mabi=64")
elseif("${COMPILER_RT_DEFAULT_TARGET_ARCH}" MATCHES "arm")
if(WIN32)
test_target_arch(arm "" "" "")
OpenPOWER on IntegriCloud