File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,10 @@ else
199
199
args=" $args --env SCCACHE_DIR=/sccache --volume $HOME /.cache/sccache:/sccache"
200
200
fi
201
201
202
+ if [ " $READ_ONLY_SRC " != " 0" ]; then
203
+ SRC_MOUNT_OPTION=" :ro"
204
+ fi
205
+
202
206
# Run containers as privileged as it should give them access to some more
203
207
# syscalls such as ptrace and whatnot. In the upgrade to LLVM 5.0 it was
204
208
# discovered that the leak sanitizer apparently needs these syscalls nowadays so
@@ -233,7 +237,7 @@ if [ -f /.dockerenv ]; then
233
237
docker cp . checkout:/checkout
234
238
args=" $args --volumes-from checkout"
235
239
else
236
- args=" $args --volume $root_dir :/checkout:ro "
240
+ args=" $args --volume $root_dir :/checkout$SRC_MOUNT_OPTION "
237
241
args=" $args --volume $objdir :/checkout/obj"
238
242
args=" $args --volume $HOME /.cargo:/cargo"
239
243
args=" $args --volume $HOME /rustsrc:$HOME /rustsrc"
You can’t perform that action at this time.
0 commit comments