File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,22 @@ Double-check that running `pwd` prints a path ending with `swift`.
158
158
* [CentOS 7](https://github.com/apple/swift-docker/blob/main/swift-ci/master/centos/7/Dockerfile)
159
159
* [Amazon Linux 2](https://github.com/apple/swift-docker/blob/main/swift-ci/master/amazon-linux/2/Dockerfile)
160
160
161
- 2. To install sccache (optional):
161
+ 2. To install `sccache` (optional):
162
+ * If you' re not building within a Docker container:
162
163
```
163
164
sudo snap install sccache --candidate --classic
164
165
```
166
+ * If you're building within a Docker container, you'll have to install `sccache` manually, since [`snap`
167
+ is not available in environments without `systemd`](https://unix.stackexchange.com/questions/541230/do-snaps-require-systemd):
168
+
169
+ ```
170
+ SCCACHE_VERSION=v0.3.0
171
+ curl -L "https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-$ (uname -m)-unknown-linux-musl.tar.gz" -o sccache.tar.gz
172
+ tar xzpvf sccache.tar.gz
173
+ sudo cp "sccache-${SCCACHE_VERSION}-$(uname -m)-unknown-linux-musl/sccache" /usr/local/bin
174
+ sudo chmod +x /usr/local/bin/sccache
175
+ ```
176
+
165
177
**Note:** LLDB currently requires at least `swig-1.3.40` but will
166
178
successfully build with version 2 shipped with Ubuntu.
167
179
You can’t perform that action at this time.
0 commit comments