Skip to content

Commit f3a7694

Browse files
authored
Merge pull request #80423 from brianmichel/brian/update-caching-build-ps1
2 parents aedb869 + c0c9116 commit f3a7694

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

utils/build.ps1

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,8 @@ If set, skips building the msi's and installer
8080
If set, debug information will be generated for the builds.
8181
8282
.PARAMETER EnableCaching
83-
If true, use `sccache` to cache the build rules.
84-
85-
.PARAMETER Cache
86-
The path to a directory where the `sccache` stores the cache. By default, it will point to `$BinaryCache\sccache`.
83+
If true, use `sccache` to cache the build rules. Configuration of sccache must be done through
84+
the environment variables defined by the sccache project.
8785
8886
.PARAMETER Clean
8987
If true, clean non-compiler builds while building.
@@ -170,7 +168,6 @@ param
170168
[switch] $EnableCaching,
171169
[ValidateSet("debug", "release")]
172170
[string] $FoundationTestConfiguration = "debug",
173-
[string] $Cache = "",
174171
[switch] $Summary,
175172
[switch] $ToBatch
176173
)
@@ -1203,11 +1200,6 @@ function Build-CMakeProject {
12031200
Invoke-VsDevShell $Platform
12041201
}
12051202

1206-
if ($EnableCaching) {
1207-
$env:SCCACHE_DIRECT = "true"
1208-
$env:SCCACHE_DIR = "$(if ($Cache) { $Cache } else { "$BinaryCache\sccache" })"
1209-
}
1210-
12111203
# Add additional defines (unless already present)
12121204
$Defines = $Defines.Clone()
12131205

0 commit comments

Comments
 (0)