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

Disable additional inlining definitions when building for Apple ARM64 #365

Closed
wants to merge 1 commit into from

Conversation

tzakharko
Copy link
Contributor

Fixes #353

The "fix" is simply to ignore the includes on the affected platforms, as it already done on Windows

@tzakharko tzakharko force-pushed the fix-apple-aarch64 branch 2 times, most recently from 03200b7 to d402f13 Compare December 15, 2020 16:41
src/inlines.cpp Outdated
@@ -35,6 +35,9 @@
// the stubs correctly at link time by itself
#if !defined(__CYGWIN__)

// Same as above for Apple ARM64 platforms
#if !defined(__APPLE__) && !defined(__aarch64__)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might it be better to say:

#if !(defined(__APPLE__) && defined(__aarch64__))

so that the change only applies to ARM64 Macs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for pointing this out! It should have been a || instead of &&, that's what I get doing things in a rush and not paying attention.

I have now changed the line as you suggest as it's definitely more readable.

@pramsey
Copy link
Member

pramsey commented Dec 17, 2020

Thanks!

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.

Build error in ARM64 Mac system
3 participants