llvm-project/llvm/cmake/modules
Shoaib Meenai 038fd0056a [cmake] Only pass CMAKE_SYSROOT if non-empty
In my build environment (cmake 3.6.1 and gcc 4.8.5 on CentOS 7), having
an empty CMAKE_SYSROOT in the cache results in --sysroot="" being passed
to all compile commands, and then the compiler errors out because of the
empty sysroot. Only set CMAKE_SYSROOT if non-empty to avoid this.

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

llvm-svn: 320183
2017-12-08 19:42:47 +00:00
..
AddLLVM.cmake [CMake] Use PRIVATE when linking LLVM fuzzers. 2017-12-06 23:32:46 +00:00
AddLLVMDefinitions.cmake
AddOCaml.cmake Move the srpm, ocaml_make_directory, llvm_vcsrevision_h, and llvm-headers projects into the Misc folder on IDEs like Visual Studio rather than leave them in the root directory. NFC. 2017-11-04 19:59:14 +00:00
AddSphinxTarget.cmake [cmake] Include project name in Sphinx doctree dir to fix race conditions 2017-11-30 19:09:22 +00:00
CMakeLists.txt [llvm] Add stripped installation targets 2017-11-30 21:48:26 +00:00
CheckAtomic.cmake [cmake] Remove unnecessary header include in atomics check 2017-12-06 18:33:07 +00:00
CheckCompilerVersion.cmake Fix the MSVC version check. 2017-01-03 23:12:36 +00:00
CheckLinkerFlag.cmake [cmake] Make check_linker_flags operate via linker flags 2017-10-31 01:30:46 +00:00
ChooseMSVCCRT.cmake
CrossCompile.cmake [cmake] Make setting of CMAKE_C(XX)_COMPILER flags overridable for cross-builds 2017-12-08 09:59:48 +00:00
DetermineGCCCompatible.cmake CMake is funky on detecting Intel 17 as GCC compatible. 2017-01-26 23:50:18 +00:00
FindOCaml.cmake
FindSphinx.cmake
GenerateVersionFromCVS.cmake
GetHostTriple.cmake Improve CMake output of host and target triple 2016-09-27 18:08:40 +00:00
GetSVN.cmake [CMake] Update GetSVN.cmake to handle repo 2017-09-09 14:17:52 +00:00
HandleLLVMOptions.cmake [cmake] Replace -Wall with /W4 in clang-cl options now that -Wall aliases -Weverything 2017-11-29 18:05:32 +00:00
HandleLLVMStdlib.cmake Remove LLVM_ENABLE_LIBCXXABI 2016-08-04 10:24:48 +00:00
LLVM-Config.cmake [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
LLVMConfig.cmake.in [cmake] Expose opt-viewer availability 2017-12-01 01:44:26 +00:00
LLVMConfigVersion.cmake.in
LLVMExternalProjectUtils.cmake [cmake] Only pass CMAKE_SYSROOT if non-empty 2017-12-08 19:42:47 +00:00
LLVMInstallSymlink.cmake
LLVMProcessSources.cmake [cmake] Add SOURCE_DIR argument to llvm_check_source_file_list 2017-09-19 17:44:42 +00:00
TableGen.cmake [globalisel][tablegen] Generate rule coverage and use it to identify untested rules 2017-11-16 00:46:35 +00:00
VersionFromVCS.cmake CMake: Silence more stderr when running git. 2017-05-02 16:37:37 +00:00