Skip to content

Commit

Permalink
fix: dist build on aarch64 linux (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes authored Nov 7, 2024
1 parent 15056f5 commit ddf24d6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,13 @@ ryul = "run --package solar-compiler --bin solar -- --language yul -Zparse-yul"
bless = "xtask test --bless"
uitest = "xtask test ui"
uibless = "xtask test ui --bless"

# Required for `dist` to work with linux arm targets: https://github.com/axodotdev/cargo-dist/issues/74#issuecomment-2053680080
[env]
CC_aarch64_unknown_linux_musl = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-gnu-gcc"
6 changes: 6 additions & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,9 @@ github-release = "announce"
install-updater = false
# Path that installers should place binaries in
install-path = "CARGO_HOME"

[dist.dependencies.apt]
gcc-aarch64-linux-gnu = { version = '*', targets = [
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
] }

0 comments on commit ddf24d6

Please sign in to comment.