Skip to content

Commit

Permalink
cmake: llvm: Invalidate toolchain capability cache
Browse files Browse the repository at this point in the history
Invalidate toolchain capability cache on toolchain configuration.

Signed-off-by: Oleg Zhurakivskyy <oleg.zhurakivskyy@intel.com>
  • Loading branch information
ozhuraki authored and nashif committed Apr 30, 2019
1 parent bee7d1e commit cbe74d4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmake/toolchain/llvm/generic.cmake
@@ -1,5 +1,13 @@
# SPDX-License-Identifier: Apache-2.0

find_appropriate_cache_directory(USER_CACHE_DIR)

if((NOT "${USER_CACHE_DIR}" STREQUAL "") AND (EXISTS "${USER_CACHE_DIR}"))
message(STATUS "Invalidating toolchain capability cache in ${USER_CACHE_DIR}")
execute_process(COMMAND
${CMAKE_COMMAND} -E remove_directory "${USER_CACHE_DIR}")
endif()

if(DEFINED $ENV{CLANG_ROOT_DIR})
set(TOOLCHAIN_HOME ${CLANG_ROOT}/bin/)
endif()
Expand Down

0 comments on commit cbe74d4

Please sign in to comment.