llvm-project/compiler-rt/cmake/Modules
Raul Tambre a72d462eb9 Re-apply "[CMake][compiler-rt][AArch64] Avoid preprocessing LSE builtins separately"
aa772fc85e (D92530) has landed fixing relocations on Darwin.
3000c19df6 (D93236) has landed working around an assembly parser bug on Darwin.
Previous quick-fix d9697c2e6b (D93198) included in this commit.

Invoking the preprocessor ourselves is fragile and would require us to replicate CMake's handling of definitions, compiler flags, etc for proper compatibility.
In my toolchain builds this notably resulted in a bunch of warnings from unused flags as my CMAKE_C_FLAGS includes CPU-specific optimization options.
Notably this part was already duplicating the logic for VISIBILITY_HIDDEN define.

Instead, symlink the files and set the proper set of defines on each.
This should also be faster as we avoid invoking the compiler multiple times.

Fixes https://llvm.org/PR48494

Differential Revision: https://reviews.llvm.org/D93278
2020-12-15 08:18:07 +02:00
..
CustomLibcxx [CMake] Bump CMake minimum version to 3.13.4 2020-07-22 14:25:07 -04:00
AddCompilerRT.cmake honor Python2_EXECUTABLE and Python3_EXECUTABLE when they are passed to cmake 2020-11-17 17:49:14 -06:00
BuiltinTests.cmake [cmake] Strip quotes in try_compile_only 2019-09-19 11:28:32 +00:00
CompilerRTCompile.cmake [compiler-rt][Darwin] Fix linker errors for check-asan 2020-07-31 16:43:21 -07:00
CompilerRTDarwinUtils.cmake Re-apply "[CMake][compiler-rt][AArch64] Avoid preprocessing LSE builtins separately" 2020-12-15 08:18:07 +02:00
CompilerRTLink.cmake
CompilerRTUtils.cmake Revert "[CMake] Avoid accidental C++ standard library dependency in sanitizers" 2020-10-14 18:44:09 -07:00
HandleCompilerRT.cmake [compiler-rt] Build with correct ABI (PR38025) 2020-04-03 11:53:40 -07:00
SanitizerUtils.cmake build: use Python3 for compiler-rt 2020-04-28 17:29:04 +00:00
UseLibtool.cmake [compiler-rt] Disable ranlib when using libtool 2020-08-24 13:48:28 -07:00