Skip to content

Commit 68e13b6

Browse files
authored
Disable caching in find_program (#72250)
Unblocks #71725. Followup: #71742 Prior to #71742, we were calling `locate_toolchain_exec` once per tool. Calling it twice with different prefix gives us the old result, which is something we don't want (we only call this local function a few times in this file, and each time for intention to "lookup" the executable).
1 parent 2f03ecd commit 68e13b6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

eng/native/configuretools.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ if(NOT WIN32 AND NOT CLR_CMAKE_TARGET_BROWSER)
2929
endif()
3030

3131
find_program(EXEC_LOCATION_${exec}
32+
NO_CACHE
3233
NAMES
3334
"${TOOLSET_PREFIX}${exec}${CLR_CMAKE_COMPILER_FILE_NAME_VERSION}"
3435
"${TOOLSET_PREFIX}${exec}")

0 commit comments

Comments
 (0)