llvm-project/compiler-rt/cmake/Modules
Michal Gorny 697026f312 [cmake] Support overriding llvm-config query results
Support overriding LLVM_* variables obtained from llvm-config when doing
stand-alone builds. The override of LLVM_MAIN_SRC_DIR is necessary to
provide LLVM sources when the initial directory used to build LLVM does
no longer exist when compiler-rt is built stand-alone. This is
especially the case when building the projects separately in temporary
directories with unpredictable names.

The code is based on existing CMakeLists.txt from clang. Alike clang, it
extends the override to all queried variables.

Differential Revision: https://reviews.llvm.org/D24005

llvm-svn: 281461
2016-09-14 13:42:31 +00:00
..
AddCompilerRT.cmake [compiler-rt] Fix library suffixes on windows 2016-09-07 20:32:48 +00:00
BuiltinTests.cmake Really fix warnings about passing -std=gnu99 to MSVC 2016-09-08 16:25:34 +00:00
CompilerRTCompile.cmake [CMake] Use LLVM_MAIN_SRC_DIR instead of LLVM_SOURCE_DIR. 2016-02-01 21:08:16 +00:00
CompilerRTDarwinUtils.cmake [CMake] Support building on OS X without Xcode installation 2016-08-19 22:22:35 +00:00
CompilerRTLink.cmake CMake: Stop using LLVM's custom parse_arguments. NFC 2015-06-19 03:39:24 +00:00
CompilerRTUtils.cmake [cmake] Support overriding llvm-config query results 2016-09-14 13:42:31 +00:00
SanitizerUtils.cmake [CMake] Cleanup CMake version checking 2016-06-09 21:35:37 +00:00