Skip to content

Commit a7af8ea

Browse files
Configure compiler launcher for C and C++ unconditionally
1 parent ebeaa00 commit a7af8ea

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

utils/build.ps1

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,12 +1044,8 @@ function Build-CMakeProject {
10441044
}
10451045

10461046
if ($EnableCaching) {
1047-
if ($UseMSVCCompilers.Contains("C") -Or $UsePinnedCompilers.Contains("C")) {
1048-
TryAdd-KeyValue $Defines CMAKE_C_COMPILER_LAUNCHER sccache
1049-
}
1050-
if ($UseMSVCCompilers.Contains("CXX") -Or $UsePinnedCompilers.Contains("CXX")) {
1051-
TryAdd-KeyValue $Defines CMAKE_CXX_COMPILER_LAUNCHER sccache
1052-
}
1047+
TryAdd-KeyValue $Defines CMAKE_C_COMPILER_LAUNCHER sccache
1048+
TryAdd-KeyValue $Defines CMAKE_CXX_COMPILER_LAUNCHER sccache
10531049
}
10541050

10551051
if ($UseMSVCCompilers.Contains("C")) {

0 commit comments

Comments
 (0)