From 2904bf3cfb1be4600a35a907a02bf5fa84ccbdac Mon Sep 17 00:00:00 2001 From: Etienne Perot Date: Mon, 10 Jun 2024 17:28:27 -0700 Subject: [PATCH] Specify `--compilation_mode=opt` for gVisor `runsc` releases. This turns on optimizations for release builds. Detected in [this comment](https://github.com/freedomofpress/dangerzone/pull/590#issuecomment-2149642086). PiperOrigin-RevId: 642076108 --- .buildkite/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.buildkite/release.yaml b/.buildkite/release.yaml index f8c0217cab..2b37efde61 100644 --- a/.buildkite/release.yaml +++ b/.buildkite/release.yaml @@ -37,8 +37,8 @@ steps: label: ":ship: Release" if: build.branch == "master" || build.tag != null commands: - - make BAZEL_OPTIONS=--config=x86_64 artifacts/x86_64 - - make BAZEL_OPTIONS=--config=aarch64 artifacts/aarch64 + - "make BAZEL_OPTIONS='--config=x86_64 --compilation_mode=opt' artifacts/x86_64" + - "make BAZEL_OPTIONS='--config=aarch64 --compilation_mode=opt' artifacts/aarch64" - make release RELEASE_NIGHTLY=$$RELEASE_NIGHTLY - cd repo && gsutil cp -r . gs://gvisor/releases/ - <<: *common