Skip to content

Commit

Permalink
Add aarch64-unknown-linux-musl Target
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Kim-Butler committed Jul 17, 2023
1 parent 657e61b commit 004108e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/bin/build-release-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ do
echo "*** Building release binary for $PLATFORM ***"
if [[ "$PLATFORM" =~ "-apple-darwin" ]]; then
CC="o64-clang" CXX="o64-clang++" LIBZ_SYS_STATIC="1" cargo build --release "--target=$PLATFORM"
elif [[ "$PLATFORM" == "aarch64-unknown-linux-musl" ]]; then
RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --release "--target=$PLATFORM"
else
cargo build --release "--target=$PLATFORM"
fi
Expand Down
1 change: 1 addition & 0 deletions .circleci/bin/get-release-platforms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -eo pipefail

RELEASE_PLATFORMS=(
"x86_64-unknown-linux-musl"
"aarch64-unknown-linux-musl"
"x86_64-apple-darwin"
"aarch64-apple-darwin"
)
Expand Down
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ jobs:
- qlc/target/x86_64-apple-darwin/release
- qlc/target/aarch64-apple-darwin/release
- qlc/target/x86_64-unknown-linux-musl/release
- qlc/target/aarch64-unknown-linux-musl/release

create_github_release:
executor: github_api_client
Expand Down
2 changes: 2 additions & 0 deletions pkg/npm/lib/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function getTarget() {
return "aarch64-apple-darwin";
case "linux-x64":
return "x86_64-unknown-linux-musl";
case "linux-arm64":
return "aarch64-unknown-linux-musl";
default:
throw new Error(`Unsupported platform: ${id}`);
}
Expand Down
1 change: 1 addition & 0 deletions pkg/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"checksumConfig": {
"aarch64-apple-darwin": "@aarch64-apple-darwin_CHECKSUM@",
"x86_64-apple-darwin": "@x86_64-apple-darwin_CHECKSUM@",
"aarch64-unknown-linux-musl": "@aarch64-unknown-linux-musl_CHECKSUM@",
"x86_64-unknown-linux-musl": "@x86_64-unknown-linux-musl_CHECKSUM@"
},
"files": [
Expand Down

0 comments on commit 004108e

Please sign in to comment.