1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/cmake/modules
Bob Haarman a41054c917 enable building with LTO on Windows using clang-cl and lld
Summary: With clang-cl gaining support for link-time optimization, we can now enable builds using LTO when using clang-cl and lld on Windows. To do this, we must not pass the -flto flag to the linker; lld-link does not understand it, but will perform LTO automatically when it encounters bitcode files. We also don't pass /Brepro when using LTO - the compiler doesn't generate object files for LTO, so passing the flag would only result in a warning about it being unused.

Reviewers: rnk, ruiu, hans

Reviewed By: hans

Subscribers: mgorny, mehdi_amini, llvm-commits

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

llvm-svn: 296658
2017-03-01 19:22:18 +00:00
..
AddLLVM.cmake [CMake] Support externalizing debug info on non-Darwin platforms 2017-02-17 19:29:12 +00:00
AddLLVMDefinitions.cmake
AddOCaml.cmake [OCaml] Install .mli (interface) files 2016-10-01 09:26:23 +00:00
AddSphinxTarget.cmake [cmake] Include component in Sphinx install rules 2016-12-05 09:15:05 +00:00
CheckAtomic.cmake [LLVM][MIPS] Introduce 64 bit atomic check in CheckAtomic.cmake 2016-06-23 06:39:35 +00:00
CheckCompilerVersion.cmake Fix the MSVC version check. 2017-01-03 23:12:36 +00:00
CheckLinkerFlag.cmake Add -Wl,-color-diagnostics if a linker supports the option. 2017-01-11 22:55:35 +00:00
ChooseMSVCCRT.cmake
CMakeLists.txt cmake: Don't try to install exports if there aren't any 2016-11-08 05:02:18 +00:00
CrossCompile.cmake CMake: make LLVM_OPTIMIZED_TABLEGEN friendly with LLVM_EXTERNAL_CLANG_SOURCE_DIR 2016-11-11 04:27:59 +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
HandleLLVMOptions.cmake enable building with LTO on Windows using clang-cl and lld 2017-03-01 19:22:18 +00:00
HandleLLVMStdlib.cmake Remove LLVM_ENABLE_LIBCXXABI 2016-08-04 10:24:48 +00:00
LLVM-Config.cmake [CMake] Fix is_llvm_target_library and support out-of-order components 2017-02-08 20:58:37 +00:00
LLVMConfig.cmake.in [CMake] Fix pthread handling for out-of-tree builds 2017-02-10 01:59:20 +00:00
LLVMConfigVersion.cmake.in
LLVMExternalProjectUtils.cmake [CMake] Multi-target builtins build 2016-12-12 23:15:10 +00:00
LLVMInstallSymlink.cmake
LLVMProcessSources.cmake
TableGen.cmake [Tablegen] Instrumenting table gen DAGGenISelDAG 2017-02-14 18:32:41 +00:00
VersionFromVCS.cmake