llvm-project/libcxx/cmake/Modules
Martin Storsjö a3870e8ab1 Reapply [runtimes] Set more paths when building runtimes standalone
These paths are needed when building with per-target runtime directories.

(It's possible to fix this by manually setting these when invoking
cmake, but one isn't supposed to need to do that.)

Also set LLVM_TOOLS_BINARY_DIR while touching this area (as it's
also unset in this case) even if it isn't specifically needed by the
per-target runtime configuration.

Fixed since previous attempt: Don't check if the runtimes directory
is the root of the CMake invocation; when the main LLVM CMake
build builds runtimes, it does invoke a sub-CMake with this directory
as the root too, just as if manually invoking CMake at the runtimes
directory. Instead check whether LLVM_TOOLS_BINARY_DIR was set and
whether find_package(LLVM) succeeded or not.

Differential Revision: https://reviews.llvm.org/D107895
2021-09-09 15:30:42 +03:00
..
CodeCoverage.cmake
DefineLinkerScript.cmake [libc++] Fix eager generator expression in DefineLinkerScript 2020-07-31 11:20:19 -04:00
HandleCompilerRT.cmake [CMake] Passthrough CFLAGS when checking the compiler-rt path 2018-11-14 00:09:26 +00:00
HandleLibCXXABI.cmake [libcxx] Fix the libc++abi header path 2021-04-27 23:30:53 -07:00
HandleLibcxxFlags.cmake [runtimes] Don't try passing --target flags to GCC 2021-07-15 16:52:02 -04:00
HandleOutOfTreeLLVM.cmake Reapply [runtimes] Set more paths when building runtimes standalone 2021-09-09 15:30:42 +03:00
MacroEnsureOutOfSourceBuild.cmake