File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ If set, debug information will be generated for the builds.
74
74
. PARAMETER EnableCaching
75
75
If true, use `sccache` to cache the build rules.
76
76
77
+ . PARAMETER Cache
78
+ The path to a directory where the `sccache` stores the cache. By default, it will point to `$BinaryCache\sccache`.
79
+
77
80
. PARAMETER Clean
78
81
If true, clean non-compiler builds while building.
79
82
@@ -129,6 +132,7 @@ param(
129
132
[switch ] $Clean ,
130
133
[switch ] $DebugInfo ,
131
134
[switch ] $EnableCaching ,
135
+ [string ] $Cache = " " ,
132
136
[switch ] $Summary ,
133
137
[switch ] $ToBatch
134
138
)
@@ -868,7 +872,11 @@ function Build-CMakeProject {
868
872
869
873
if ($EnableCaching ) {
870
874
$env: SCCACHE_DIRECT = " true"
871
- $env: SCCACHE_DIR = " $BinaryCache \sccache"
875
+ if ($Cache -eq " " ) {
876
+ $env: SCCACHE_DIR = " $BinaryCache \sccache"
877
+ } else {
878
+ $env: SCCACHE_DIR = $Cache
879
+ }
872
880
}
873
881
if ($UseSwiftSwiftDriver ) {
874
882
$env: SWIFT_DRIVER_SWIFT_FRONTEND_EXEC = ([IO.Path ]::Combine($CompilersBinaryCache , " bin" , " swift-frontend.exe" ))
You can’t perform that action at this time.
0 commit comments