Skip to content
Permalink
Browse files

cmake: llvm: Invalidate toolchain capability cache

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 21, 2019
1 parent bee7d1e commit cbe74d46e042297a812330983cadbccc57c377c9
Showing with 8 additions and 0 deletions.
  1. +8 −0 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()

0 comments on commit cbe74d4

Please sign in to comment.
You can’t perform that action at this time.