llvm-project/llvm/cmake/modules
Martin Storsjö b11a2f2544 [cmake] Use -ffunction-sections and -Wl,--gc-sections on MinGW targets
If compiling with GCC or linking with ld.bfd, these options have little
effect, but if built with Clang and linked with LLD, they provide a
quite notable size decrease - this shrinks an entire llvm-mingw
distribution package by 22%.

If building with BUILD_SHARED_LIBS or LLVM_BUILD_LLVM_DYLIB with LLD,
this requires a version of LLD that contains a fix for auto exporting
symbols from comdats, 2b01a417d7.

Differential Revision: https://reviews.llvm.org/D101568
2021-04-30 10:53:40 +03:00
..
AddLLVM.cmake [cmake] Use -ffunction-sections and -Wl,--gc-sections on MinGW targets 2021-04-30 10:53:40 +03:00
AddLLVMDefinitions.cmake
AddOCaml.cmake
AddSphinxTarget.cmake Reland [lldb][docs] Use sphinx instead of epydoc to generate LLDB's Python reference 2021-01-17 12:13:01 +01:00
CMakeLists.txt Revert "[CMake] Use write_basic_package_version_file for LLVM" 2021-03-29 13:07:39 -07:00
CheckAtomic.cmake Fix CMake configuration error when run with -Werror/-Wall 2020-10-10 21:22:40 +02:00
CheckCompilerVersion.cmake Bump MSVC required version to 19.14 2020-12-03 10:09:18 -08:00
ChooseMSVCCRT.cmake
CrossCompile.cmake [CMake] Fix cross-compiling with LLVM as CMake subproject 2020-04-30 16:54:20 +02:00
DetermineGCCCompatible.cmake
FindGRPC.cmake [CMake][gRPC] Fix a typo in protobuf version variable name 2021-03-26 19:33:06 +03:00
FindLibpfm.cmake [llvm-exegesis] Check perf_branch_entry for field cycles 2020-07-27 11:31:13 -04:00
FindOCaml.cmake
FindSphinx.cmake
FindZ3.cmake [NFC] Fix Z3 version detection regexp 2020-04-09 13:06:22 +02:00
GenerateVersionFromVCS.cmake
GetErrcMessages.cmake [CMAKE] Fix cross-compilation build 2021-03-23 13:24:08 +03:00
GetHostTriple.cmake [SystemZ/ZOS] Additions to the build system. 2020-08-26 06:53:44 -04:00
GetLibraryName.cmake [CMake] Simplify CMake handling for libxml2 2020-09-09 21:44:44 -07:00
HandleLLVMOptions.cmake [cmake] Use -ffunction-sections and -Wl,--gc-sections on MinGW targets 2021-04-30 10:53:40 +03:00
HandleLLVMStdlib.cmake [CMake][llvm] avoid conflict w/ (and use when available) new builtin check_linker_flag 2021-04-27 16:41:28 -07:00
LLVM-Build.cmake [llvmbuildectomy] Also include component groups in llvm-config --components list 2020-11-26 21:05:56 +01:00
LLVM-Config.cmake [ASTMatchers] Fix build when no targets are enabled 2021-01-05 14:40:35 +00:00
LLVMCheckLinkerFlag.cmake [CMake][llvm] add missing include to LLVMCheckLinkerFlag 2021-04-27 18:48:52 -07:00
LLVMConfig.cmake.in [llvm] Export LLVM_LIT_ARGS in LLVMConfig.cmake 2020-10-29 20:27:05 -07:00
LLVMConfigVersion.cmake.in Revert "[CMake] Use write_basic_package_version_file for LLVM" 2021-03-29 13:07:39 -07:00
LLVMDistributionSupport.cmake
LLVMExternalProjectUtils.cmake [runtimes] Fix crosscompiling after a7cad6680b (D97451) 2021-03-06 11:35:14 +02:00
LLVMInstallSymlink.cmake [CMake] try creating symlink first on windows 2021-04-07 11:23:10 +02:00
LLVMProcessSources.cmake [clangd] Fix remote index build without shared libs mode 2020-04-28 19:16:37 +02:00
TableGen.cmake [CMake][TableGen] Remove dead CMake version checks 2020-09-07 10:59:07 +03:00
TensorFlowCompile.cmake [mlgo] Skip AOT-compiling a model if a header/object pair is provided 2021-04-13 09:46:29 -07:00
UseLibtool.cmake
VersionFromVCS.cmake Make ninja smart console builds more pretty 2020-06-22 06:35:13 -04:00