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

Fix for Apple Silicon #10

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Fix for Apple Silicon #10

merged 1 commit into from
Nov 25, 2020

Conversation

xlc
Copy link
Contributor

@xlc xlc commented Nov 25, 2020

Closes #9

@@ -14,7 +14,7 @@ lazy_static! {
};
}


#[cfg(target_arch = "x86_64")]
extern "stdcall" {
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder why is this stdcall, I thought this is for windows. And macOS uses System V, no? Does extern "C" work?

Copy link
Contributor

@niklasad1 niklasad1 Nov 25, 2020

Choose a reason for hiding this comment

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

Good question, according to https://doc.rust-lang.org/stable/reference/items/external-blocks.html#abi System V is the default for macOS but it has worked in the past AFAIK.

//cc @debris

Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, maybe it worked because this function was not called at all?

@debris debris merged commit 0093d27 into debris:master Nov 25, 2020
@debris
Copy link
Owner

debris commented Nov 25, 2020

thanks 🙌

I added paritytech:core-devs to the owners on crates.io/fs-swap. Feel free to release the new version

@ordian
Copy link
Contributor

ordian commented Nov 25, 2020

Thanks, opened paritytech#1.

@xlc xlc deleted the fix-aarch64-apple branch November 25, 2020 17:28
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.

Failed to build on Apple Silicon
4 participants