Skip to content

Commit e933aef

Browse files
Initialize sccache dir right away
1 parent 8308a79 commit e933aef

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
@@ -142,7 +142,7 @@ param(
142142
[switch] $Clean,
143143
[switch] $DebugInfo,
144144
[switch] $EnableCaching,
145-
[string] $Cache = "",
145+
[string] $Cache = "$BinaryCache\sccache",
146146
[string] $Allocator = "",
147147
[switch] $Summary,
148148
[switch] $ToBatch
@@ -958,11 +958,7 @@ function Build-CMakeProject {
958958

959959
if ($EnableCaching) {
960960
$env:SCCACHE_DIRECT = "true"
961-
if ($Cache -eq "") {
962-
$env:SCCACHE_DIR = "$BinaryCache\sccache"
963-
} else {
964-
$env:SCCACHE_DIR = $Cache
965-
}
961+
$env:SCCACHE_DIR = $Cache
966962
}
967963
if ($UseSwiftSwiftDriver) {
968964
$env:SWIFT_DRIVER_SWIFT_FRONTEND_EXEC = ([IO.Path]::Combine($CompilersBinaryCache, "bin", "swift-frontend.exe"))

0 commit comments

Comments
 (0)