diff options
| author | Simon Atanasyan <simon@atanasyan.com> | 2018-09-27 07:17:00 +0000 |
|---|---|---|
| committer | Simon Atanasyan <simon@atanasyan.com> | 2018-09-27 07:17:00 +0000 |
| commit | ab4f15e20c5ff05c040fbb2ba7f4686d77fd58c2 (patch) | |
| tree | a2c5d3e6b79f8de121c214ae02cfedcef23c5267 | |
| parent | e40db05b27750d40a61d7b9d8be8d18b23218941 (diff) | |
| download | bcm5719-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.cmake | 8 |
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 "" "" "") |

