Skip to content

Commit f0cbf07

Browse files
committed
Merge remote-tracking branch 'origin/main' into rebranch
2 parents 1290903 + 20171ef commit f0cbf07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

benchmark/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ The benchmark suite can be built with swiftpm/llbuild without needing any help
140140
from build-script by invoking swift build in the benchmark directory:
141141

142142
```
143-
swift-source/swift/benchmark$ swift build -configuration release
143+
swift-source/swift/benchmark$ swift build --configuration release
144144
swift-source/swift/benchmark$ .build/release/SwiftBench
145145
#,TEST,SAMPLES,MIN(μs),MAX(μs),MEAN(μs),SD(μs),MEDIAN(μs)
146146
1,Ackermann,1,169,169,169,0,169

docs/DevelopmentTips.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ Compilation times for the compiler and the standard library can be agonizing, es
3232

3333
```
3434
$ brew install sccache
35-
$ sccache --start-server
3635
$ ./swift/utils/build-script MY_ARGS --sccache
3736
```
3837

39-
If you want to always use sccache, you can `export SWIFT_USE_SCCACHE=1` and the build script will pick it up.
38+
If you want to always use sccache, you can `export SWIFT_USE_SCCACHE=1` and omit the `--sccache` flag from the `build-script` invocation.
4039

41-
Given the size of artifacts generated, you might also want to bump the cache size from the default 10GB to something larger, say by putting `export SCCACHE_CACHE_SIZE="50G"` in your dotfile(s).
40+
Given the size of artifacts generated, you might also want to bump the cache size from the default 10GB to something larger, say by putting `export SCCACHE_CACHE_SIZE="50G"` in your dotfile(s). You'll need to restart the `sccache` server after changing that environment variable
41+
(`sccache --stop-server && sccache --start-server`).
4242

4343
You can run some compiles to see if it is actually doing something by running `sccache --show-stats`. Depending on the exact compilation task you're running, you might see very different cache hit rates. For example, `sccache` is particularly effective if you're rebuilding LLVM, which doesn't change so frequently from the Swift compiler's perspective. On the other hand, if you're changing the compiler's AST, the cache hit rate is likely to be much lower.
4444

0 commit comments

Comments
 (0)