llvm/compiler-rt/cmake
Julian Lettner 8887c63e32 Adapt "cross compile?" check for Apple Silicon
This piece of code tries to implement the semantics "cross compile?" to
determine CFLAGS used for test binary compilation.
```
if(ANDROID OR ${arch} MATCHES "arm|aarch64|riscv32|riscv64")
```

Since Apple Silicon, macOS runs on arm64e, so we take the wrong branch
when compiling and running tests locally "on the host" on an AS machine.

Furthermore, for Apple code, we use the separate
`get_test_cflags_for_apple_platform` function to determine these test
compiliation flags and `get_test_cc_for_arch` is only ever used in the
"compile & run on host" case, so we can short-curcuit the "cross
compile?" check here.

rdar://91446703

Differential Revision: https://reviews.llvm.org/D123633
2022-04-13 15:26:14 -07:00
..
caches
Modules [compiler-rt] Don't explictly ad-hoc sign dylibs on APPLE if ld is new enough 2022-04-13 08:35:51 -04:00
base-config-ix.cmake [compiler-rt][builtins] build the macOS compiler-rt built-ins with Mac Catalyst support 2022-02-22 19:32:19 -08:00
builtin-config-ix.cmake Revert D120327 "compiler-rt: Add udivmodei5 to builtins and add bitint library" 2022-04-08 12:39:42 -07:00
config-ix.cmake Adapt "cross compile?" check for Apple Silicon 2022-04-13 15:26:14 -07:00
crt-config-ix.cmake [CMake][compiler-rt] Include the missing variables 2022-04-06 17:40:29 -07:00