[Lldb-commits] [PATCH] D43096: [lit] Update how clang and other binaries are found in per-configuration directories
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Feb 12 03:03:03 PST 2018
labath added inline comments.
================
Comment at: CMakeLists.txt:73-80
+ if ("${LLDB_TEST_C_COMPILER}" STREQUAL "")
+ set(LLDB_TESTING_DEFAULT_C_COMPILER ON)
+ endif()
+
+ if ("${LLDB_TEST_CXX_COMPILER}" STREQUAL "")
+ set(LLDB_TESTING_DEFAULT_CXX_COMPILER ON)
+ endif()
----------------
I don't think this will work the second time you run cmake (i.e., re-run cmake in an already-initialized build directory) as then this would pick up the cached value from the previous cmake run.
I think a least magic solution would be to have a cmake option to specify whether you are overriding the compiler, defaulting to off (and in that case these cache values would be ignored).
https://reviews.llvm.org/D43096
More information about the lldb-commits
mailing list