Skip to content

Commit 102f4d5

Browse files
Merge pull request #35 from ClangBuiltLinux/update
test-clang.sh: use unsecure seccomp to work around runc issue
2 parents d66a5a8 + 4ce1b19 commit 102f4d5

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ci/test-clang.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ for docker_image in "${docker_images[@]}"; do
3131
echo "[+] Testing clang in '$docker_image' container"
3232
"$DOCKER" run \
3333
--rm \
34+
--security-opt seccomp=unconfined \
3435
--volume "$rootdir":/repo:ro,z \
3536
"$docker_image" \
3637
bash /repo/ci/test-clang-docker.sh

llvm-project/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ epoch_cmd = \
1919
$(if $(3),--build-arg BASE=$(3)) \
2020
--file Dockerfile.$(1) \
2121
--tag $(2) \
22-
. && \
23-
bash ../ci/test-clang.sh $(2)
22+
.
2423

2524
epoch1:
2625
$(call epoch_cmd,$@,$(IMAGE):stage2-$(HOST_ARCH))
@@ -35,3 +34,6 @@ clang: epoch3
3534
$(DOCKER) rm llvm-project || true
3635
$(DOCKER) create --name llvm-project $(IMAGE):stage3-$(HOST_ARCH)
3736
$(DOCKER) cp llvm-project:/usr/local/bin/clang-14 clang
37+
38+
test: epoch3
39+
bash ../ci/test-clang.sh $(IMAGE):stage3-$(HOST_ARCH)

0 commit comments

Comments
 (0)