From 726cc6bd0c0e26378574f74b712de948e56664ec Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Wed, 15 Dec 2021 12:00:37 +0100 Subject: Fix failure with --config=toolchain Since our toolchain is loaded dynamically depending on the OS and architecture, we can't have a static --extra_toolchains in our .bazelrc. Instead, enable the toolchains in the specific GitHub Actions. --- docker/jazzer/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docker/jazzer/Dockerfile') diff --git a/docker/jazzer/Dockerfile b/docker/jazzer/Dockerfile index b82b9d83..56787be7 100644 --- a/docker/jazzer/Dockerfile +++ b/docker/jazzer/Dockerfile @@ -24,7 +24,8 @@ RUN git clone --depth=1 https://github.com/CodeIntelligenceTesting/jazzer.git && touch /usr/bin/ld && \ touch /usr/bin/ld.gold && \ BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 \ - ./bazelisk-linux-amd64 build --config=toolchain //agent:jazzer_agent_deploy.jar //driver:jazzer_driver + ./bazelisk-linux-amd64 build --config=toolchain --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux \ + //agent:jazzer_agent_deploy.jar //driver:jazzer_driver FROM gcr.io/distroless/java -- cgit v1.2.3