1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 05:23:45 +02:00
llvm-mirror/cmake/modules
Michal Gorny 0e3582c71e [cmake] Make LIT_COMMAND configurable and improve fallback support
Make LIT_COMMAND configurable, use source tree only when actually
available and extend the default search to other common executable names
'lit.py' and 'lit', in order to increase uniformity between all LLVM
projects and support using installed lit.

Changing the conditional used to determine whether in-tree or external
lit is being used covers the case when LLVM_MAIN_SRC_DIR is defined but
does not exist (anymore). In this case, the functions falls back to
looking for installed lit rather than attempting to use a non-existing
path. The same conditional is used in clang already.

Making LIT_COMMAND a cache variable in case the source tree variant is
used serves two purposes. Firstly, it increases uniformity between
the two branches since find_program() implicitly makes LIT_COMMAND
a cache variable. Secondly, it allows overriding the lit executable used
to run the tests when the LLVM source tree is provided. Gentoo is
planning to use this to use installed (and byte-compiled) lit instead of
re-compiling it in every LLVM project.

Extending default search is meant to increase uniformity between
different LLVM projects. The 'lit.py' name is already used by a few of
them, and 'lit' is the name used by utils/lit/setup.py when installing.

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

llvm-svn: 283247
2016-10-04 20:25:37 +00:00
..
AddLLVM.cmake [cmake] Make LIT_COMMAND configurable and improve fallback support 2016-10-04 20:25:37 +00:00
AddLLVMDefinitions.cmake cmake: Avoid leading space in LLVM_DEFINITIONS. 2015-10-12 10:42:03 +00:00
AddOCaml.cmake [OCaml] Install .mli (interface) files 2016-10-01 09:26:23 +00:00
AddSphinxTarget.cmake [cmake] Use separate doctrees to prevent races between Sphinx instances 2016-10-04 06:09:14 +00:00
CheckAtomic.cmake [LLVM][MIPS] Introduce 64 bit atomic check in CheckAtomic.cmake 2016-06-23 06:39:35 +00:00
CheckCompilerVersion.cmake cmake: include what you use 2016-03-08 18:56:00 +00:00
ChooseMSVCCRT.cmake
CMakeLists.txt [CMake] Exclude intrinsics_gen from LLVM_COMMON_DEPENDS in LLVMConfig.cmake 2016-10-04 17:44:28 +00:00
CrossCompile.cmake [CMake] Fixing a typo 2016-06-08 21:22:03 +00:00
DetermineGCCCompatible.cmake [CMake] Move the setting of LLVM_COMPILER_IS_GCC_COMPATIBLE to a separate file 2015-09-29 14:33:58 +00:00
FindOCaml.cmake
FindSphinx.cmake
GenerateVersionFromCVS.cmake Add SVN version to libLLVMLTO 2016-04-16 07:33:14 +00:00
GetHostTriple.cmake Improve CMake output of host and target triple 2016-09-27 18:08:40 +00:00
GetSVN.cmake
HandleLLVMOptions.cmake [modules] Centralize the module cache. 2016-09-29 08:14:06 +00:00
HandleLLVMStdlib.cmake Remove LLVM_ENABLE_LIBCXXABI 2016-08-04 10:24:48 +00:00
LLVM-Config.cmake Avoid linking LLVM component libraries with libLLVM 2016-02-12 01:42:43 +00:00
LLVMConfig.cmake.in [cmake] Export gtest/gtest_main and its dependencies via a special build tree only cmake exports file. 2016-09-09 19:45:34 +00:00
LLVMConfigVersion.cmake.in
LLVMExternalProjectUtils.cmake [CMake] Cleanup LLVM_OPTIMIZED_TABLEGEN 2016-09-06 20:27:07 +00:00
LLVMInstallSymlink.cmake [CMake] Cleaning up and generalizing the LLVMInstallSymlink script so that it can be used for libraries too. 2015-10-16 23:17:13 +00:00
LLVMProcessSources.cmake
TableGen.cmake [CMake] Cleanup LLVM_OPTIMIZED_TABLEGEN 2016-09-06 20:27:07 +00:00
VersionFromVCS.cmake Add SVN version to libLLVMLTO 2016-04-16 07:33:14 +00:00