llvm-project/llvm/cmake/modules
Keno Fischer a7f00941ef [cmake] With utils disabled, don't build tblgen in cross mode
Summary:
In cross mode, we build a separate NATIVE tblgen that runs on the
host and is used during the build. Separately, we have a flag that
disables building all executables in utils/. Of course generally,
this doesn't turn off tblgen, since we need that during the build.
In cross mode, however, that tblegen is useless since we never
actually use it. Furthermore, it can be actively problematic if the
cross toolchain doesn't like building executables for whatever reason.
And even if building executables works fine, we can at least save
compile time by omitting it from the target build. There's two changes
needed to make this happen:
- Stop creating a dependency from the native tool to the target tool.
  No such dependency is required for a correct build, so I'm not entirely
  sure why it was there in the first place.
- If utils were disabled on the CMake command line and we're in cross mode,
  respect that by excluding it from the install target (using EXCLUDE_FROM_ALL).

Reviewers: smeenai
Differential Revision: https://reviews.llvm.org/D64032

llvm-svn: 364872
2019-07-01 23:15:07 +00:00
..
AddLLVM.cmake Add llvm-symbolizer to LLVM_TOOLCHAIN_TOOLS (PR40152) 2019-06-25 07:15:41 +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] [cmake] Provide split include paths in LLVMConfig 2019-02-13 08:34:40 +00:00
CheckAtomic.cmake [cmake] Always respect existing CMAKE_REQUIRED_FLAGS when adding additional ones. 2017-12-25 01:23:09 +00:00
CheckCompilerVersion.cmake [cmake] Fix error message on simulated VS version check 2019-04-30 12:37:10 +00:00
CheckLinkerFlag.cmake [cmake] Make check_linker_flags operate via linker flags 2017-10-31 01:30:46 +00:00
ChooseMSVCCRT.cmake Revert r361826, as it still breaks LLDB. 2019-05-28 15:04:39 +00:00
CrossCompile.cmake [cmake] Fix bug in r358779 - [CMake] Pass monorepo build settings in cross compile 2019-04-21 19:20:13 +00:00
DetermineGCCCompatible.cmake
FindLibpfm.cmake [Build][NFC] Split off libpfm detection to a separate module. 2018-04-11 07:39:00 +00:00
FindOCaml.cmake
FindSphinx.cmake
FindZ3.cmake Moved everything SMT-related to LLVM and updated the cmake scripts. 2019-03-25 17:47:45 +00:00
GenerateVersionFromVCS.cmake [llvm] [cmake] Use current directory in GenerateVersionFromVCS 2019-02-11 09:07:07 +00:00
GetHostTriple.cmake [cmake] Allow config.guess to be run with MSYS on Windows 2019-06-26 22:07:43 +00:00
HandleLLVMOptions.cmake Remove flag for no longer supported MSVC version 2019-06-24 18:47:53 +00:00
HandleLLVMStdlib.cmake Add libc++ to link XRay test cases if libc++ is used to build CLANG 2019-05-06 17:45:21 +00:00
LLVM-Config.cmake Fix BUILD_SHARED_LIBS builds after r361567 2019-05-24 02:15:27 +00:00
LLVMConfig.cmake.in [CMake] Export CMAKE_CONFIGURATION_TYPES for the LLVM build-tree 2019-06-05 08:29:24 +00:00
LLVMConfigVersion.cmake.in
LLVMDistributionSupport.cmake build: extract LLVM distribution target handling 2019-06-14 18:28:57 +00:00
LLVMExternalProjectUtils.cmake [CMake] Provide an option to use relative paths in debug info 2019-05-31 01:34:51 +00:00
LLVMInstallSymlink.cmake Specify log level for CMake messages (less stderr) 2019-06-19 15:25:32 +00:00
LLVMProcessSources.cmake [llvm] [cmake] Add additional headers only if they exist 2019-04-04 14:21:38 +00:00
TableGen.cmake [cmake] With utils disabled, don't build tblgen in cross mode 2019-07-01 23:15:07 +00:00
UseLibtool.cmake [CMake] Use libtool for runtimes when building for Apple platform 2019-06-02 02:05:01 +00:00
VersionFromVCS.cmake [CMake] Unify scripts for generating VCS headers 2019-02-06 03:51:00 +00:00