mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
This patch add new environment variables to control compiler cache. Works as follow: If persistent cache is set driver check if NEO_CACHE_DIR is set. If not then driver checks XDG_CACHE_HOME - If exists then driver create neo_compiler_cache folder, if not then driver checks HOME directory. If each NEO_CACHE_DIR, XDG_CACHE_HOME and HOME are not set then compiler cache is disabled. Current support is for Linux only. Signed-off-by: Diedrich, Kamil <kamil.diedrich@intel.com> Related-To: NEO-4262
25 lines
891 B
CMake
25 lines
891 B
CMake
#
|
|
# Copyright (C) 2019-2023 Intel Corporation
|
|
#
|
|
# SPDX-License-Identifier: MIT
|
|
#
|
|
|
|
target_sources(neo_shared_tests PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
|
${CMAKE_CURRENT_SOURCE_DIR}/compiler_cache_tests.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/compiler_interface_tests.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/compiler_options_tests.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/external_functions_tests.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/intermediate_representations_tests.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/linker_tests.cpp
|
|
)
|
|
|
|
if(WIN32)
|
|
target_sources(neo_shared_tests PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/windows/compiler_cache_tests_windows.cpp
|
|
)
|
|
else()
|
|
target_sources(neo_shared_tests PRIVATE
|
|
${CMAKE_CURRENT_SOURCE_DIR}/linux/compiler_cache_tests_linux.cpp
|
|
)
|
|
endif() |