Skip to content

Commit

Permalink
Build and release on linux-aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
jez authored and DazWorrall committed Feb 23, 2024
1 parent 12e9cc9 commit d5fc1d9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ build:untyped-blame --copt=-DTRACK_UNTYPED_BLAME_MODE
# harden: mark relocation sections read-only
build:release-linux --linkopt=-Wl,-z,relro,-z,now
build:release-linux --config=lto-linux --config=release-common
# Separate config for aarch64, so x86_64 can be differently optimized
build:release-linux-aarch64 --linkopt=-Wl,-z,relro,-z,now
build:release-linux-aarch64 --config=lto-linux --config=release-common

# This is to turn on vector instructions where available.
# We used to do this unconditionally, but Rosetta 2 doesn't translate all vector instructions well.
Expand Down
5 changes: 4 additions & 1 deletion .buildkite/build-static-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ processor_name="$(uname -m)"

platform="${kernel_name}-${processor_name}"
case "$platform" in
linux-x86_64|linux-aarch64)
linux-x86_64)
CONFIG_OPTS="--config=release-linux"
;;
linux-aarch64)
CONFIG_OPTS="--config=release-${platform}"
;;
darwin-x86_64|darwin-arm64)
CONFIG_OPTS="--config=release-mac"
command -v autoconf >/dev/null 2>&1 || brew install autoconf
Expand Down
8 changes: 8 additions & 0 deletions .buildkite/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ steps:
artifact_paths: _out_/**/*
<<: *elastic

- label: ":linux: (arm64) build-static-release.sh"
command: .buildkite/build-static-release.sh
artifact_paths: _out_/**/*
<<: *elastic
agents:
os: linux
queue: elastic-arm64

- label: ":linux: build-sorbet-static-and-runtime.sh"
command: .buildkite/build-sorbet-static-and-runtime.sh
artifact_paths: _out_/**/*
Expand Down

0 comments on commit d5fc1d9

Please sign in to comment.