You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/cmake/Modules
Hans Wennborg 71de49afa4 Merging r352374:
------------------------------------------------------------------------
r352374 | mgorny | 2019-01-28 16:16:03 +0100 (Mon, 28 Jan 2019) | 18 lines

[cmake] Fix get_llvm_lit_path() to respect LLVM_EXTERNAL_LIT always

Refactor the get_llvm_lit_path() logic to respect LLVM_EXTERNAL_LIT,
and require the fallback to be defined explicitly
as LLVM_DEFAULT_EXTERNAL_LIT. This fixes building libcxx standalone
after r346888.

The old logic was using LLVM_EXTERNAL_LIT both as user-defined cache
variable and an optional pre-definition of default value from caller
(e.g. libcxx). It included a hack to make this work by assigning
the value back and forth but it was fragile and stopped working
in libcxx.

The new logic is simpler and more transparent. Default value is
provided in a separate variable, and used only when user-specified
variable is empty (i.e. not overriden).

Differential Revision: https://reviews.llvm.org/D57282
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/branches/release_80@352497 91177308-0d34-0410-b5e6-96231b3b80d8
6 years ago
..
CheckLibcxxAtomic.cmake [libcxx][cmake] Remove libatomic temporarily from CMAKE_REQUIRED_LIBRARIES when configuring 7 years ago
CodeCoverage.cmake Change test coverage generation to use llvm-cov instead of gcov. 8 years ago
HandleCompilerRT.cmake [CMake] Passthrough CFLAGS when checking the compiler-rt path 6 years ago
HandleLibCXXABI.cmake [CMake] Use just basename when copying C++ ABI headers 6 years ago
HandleLibcxxFlags.cmake Add cxx-benchmark-unittests target 6 years ago
HandleOutOfTreeLLVM.cmake Merging r352374: 6 years ago
MacroEnsureOutOfSourceBuild.cmake Add CMake build and fix major Linux blockers. 14 years ago