1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/cmake/modules
Pavel Labath fd8c611447 [cmake] Make setting of CMAKE_C(XX)_COMPILER flags overridable for cross-builds
Summary:
r319898 made it possible to override these variables via the
CROSS_TOOLCHAIN_FLAGS setting, but this only worked if one explicitly
specifies these variables there. If, instead, one uses
CROSS_TOOLCHAIN_FLAGS to specify a toolchain file (as our internal
builds do, to point cmake to a checked-in toolchain), the
CMAKE_C(XX)_COMPILER flags would still win over the ones specified by
the toolchain file.

To fix is to make the mere presence of these flags overridable. I do
this by putting them as a default value for the CROSS_TOOLCHAIN_FLAGS
setting, so they can be overridden at cmake configuration time.

Reviewers: hintonda, beanz

Subscribers: bogner, llvm-commits, mgorny

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

llvm-svn: 320138
2017-12-08 09:59:48 +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
CheckAtomic.cmake [cmake] Remove unnecessary header include in atomics check 2017-12-06 18:33:07 +00:00
CheckCompilerVersion.cmake
CheckLinkerFlag.cmake [cmake] Make check_linker_flags operate via linker flags 2017-10-31 01:30:46 +00:00
ChooseMSVCCRT.cmake
CMakeLists.txt [llvm] Add stripped installation targets 2017-11-30 21:48:26 +00:00
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
FindOCaml.cmake
FindSphinx.cmake
GenerateVersionFromCVS.cmake
GetHostTriple.cmake
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
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] Don't use comma as an alternate separator 2017-12-05 00:15:18 +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