Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-enable linux arm64 builds #1060

Merged
merged 6 commits into from
Aug 25, 2023
Merged

re-enable linux arm64 builds #1060

merged 6 commits into from
Aug 25, 2023

Conversation

graydon
Copy link
Contributor

@graydon graydon commented Aug 18, 2023

Fix #1011 by avoiding the use of crate-type = ["cdylib"] in native builds.

It was causing some linker errors when cross-compiling from x64-linux to aarch64-linux, I believe the root cause is rust-lang/cargo#4133 i.e. cargo failing to select the right target linker during cross builds.

The cdylib crate type is only relevant when building wasms, so this change just lowers that functionality into the specific commands that build wasms.

Copy link
Member

@leighmcculloch leighmcculloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make a couple tweaks? See inline.

.github/workflows/rust.yml Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
soroban-token-sdk/Cargo.toml Outdated Show resolved Hide resolved
@graydon graydon force-pushed the arm64 branch 2 times, most recently from a273b16 to d46255b Compare August 24, 2023 21:15
@leighmcculloch leighmcculloch enabled auto-merge (squash) August 24, 2023 23:29
auto-merge was automatically disabled August 25, 2023 19:48

Merge queue setting changed

@leighmcculloch leighmcculloch added this pull request to the merge queue Aug 25, 2023
Merged via the queue into main with commit e7e5eca Aug 25, 2023
13 checks passed
@leighmcculloch leighmcculloch deleted the arm64 branch August 25, 2023 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Linux arm64 / aarch64 builds of contracts broken
2 participants