We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bee7d1e commit cbe74d4Copy full SHA for cbe74d4
cmake/toolchain/llvm/generic.cmake
@@ -1,5 +1,13 @@
1
# SPDX-License-Identifier: Apache-2.0
2
3
+find_appropriate_cache_directory(USER_CACHE_DIR)
4
+
5
+if((NOT "${USER_CACHE_DIR}" STREQUAL "") AND (EXISTS "${USER_CACHE_DIR}"))
6
+ message(STATUS "Invalidating toolchain capability cache in ${USER_CACHE_DIR}")
7
+ execute_process(COMMAND
8
+ ${CMAKE_COMMAND} -E remove_directory "${USER_CACHE_DIR}")
9
+endif()
10
11
if(DEFINED $ENV{CLANG_ROOT_DIR})
12
set(TOOLCHAIN_HOME ${CLANG_ROOT}/bin/)
13
endif()
0 commit comments