From 8c5b9ee5daa8c3b91eeec55123f94e922bb8f705 Mon Sep 17 00:00:00 2001 From: Raihan Abdul Majid Date: Wed, 7 Oct 2026 18:56:11 +0700 Subject: [PATCH] fix(agc): exclude tests and tools from the shader cache guard when the source path holds regex characters The exclusion regex embedded CMAKE_CURRENT_SOURCE_DIR, so a checkout under a path such as "Local Disk (D)" never matched and the shader disk cache key check failed on the test sources. Glob relative to the source directory and match only the relative prefix; add_shader_recompiler already resolves relative guard sources against CMAKE_CURRENT_SOURCE_DIR. Co-Authored-By: Claude Opus 5.5 --- core/libs/prx/libSceAgcDriver/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/libs/prx/libSceAgcDriver/CMakeLists.txt b/core/libs/prx/libSceAgcDriver/CMakeLists.txt index 615b0d15e..6a5bf50fb 100644 --- a/core/libs/prx/libSceAgcDriver/CMakeLists.txt +++ b/core/libs/prx/libSceAgcDriver/CMakeLists.txt @@ -180,12 +180,12 @@ target_include_directories(libSceAgcDriver PRIVATE ${CMAKE_SOURCE_DIR}/3rdparty/SPIRV-Headers/include ) -file(GLOB_RECURSE agcShaderCacheGuardSources CONFIGURE_DEPENDS +file(GLOB_RECURSE agcShaderCacheGuardSources CONFIGURE_DEPENDS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.hpp" "${CMAKE_CURRENT_SOURCE_DIR}/*.h" ) -list(FILTER agcShaderCacheGuardSources EXCLUDE REGEX "^${CMAKE_CURRENT_SOURCE_DIR}/(tests|tools)/") +list(FILTER agcShaderCacheGuardSources EXCLUDE REGEX "^(tests|tools)/") add_shader_recompiler(shader_recompiler_agc_driver libc GUARD_SOURCES ${agcShaderCacheGuardSources}