Skip to content

Commit b7ab541

Browse files
authored
Mount a host directory as container's /tmp (#13)
This way, when Clang crashes inside the container, auto-generated reproducers are easily accessible on the host.
1 parent acb26fc commit b7ab541

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ ccache*/
44
.build*/
55
/src/
66
/inst/
7+
/tmp/

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ build_in_docker() {
104104
--volume "$ROOT/output:$OUTPUT_DIR:rw" \
105105
--volume "$ROOT/ccache:$CCACHE_DIR:rw" \
106106
--volume "$ROOT/src:$SRC_DIR:ro" \
107+
--volume "$ROOT/tmp:/tmp:rw" \
107108
--tmpfs "$DOCKER_BUILD_INSTALL_DIR:rw,exec,size=2G" \
108109
--tmpfs "$BUILD_TMP:rw,exec,size=5G" \
109110
"$DOCKER_IMAGE_NAME" "$REPO_ROOT/scripts/build-in-docker.sh"

0 commit comments

Comments
 (0)