8000 BUG: Fix headers for universal2 builds by isuruf · Pull Request #20270 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Fix headers for universal2 builds #20270

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

Merged
merged 1 commit into from
Nov 1, 2021
Merged

BUG: Fix headers for universal2 builds #20270

merged 1 commit into from
Nov 1, 2021

Conversation

isuruf
Copy link
Contributor
@isuruf isuruf commented Nov 1, 2021

There were some support for universal (intel+powerpc) wheels.
This does something similar for universal2 (intel+arm) wheels

@charris charris merged commit ae453aa into numpy:main Nov 1, 2021
@charris
Copy link
Member
charris commented Nov 1, 2021

Thanks @isuruf .

#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
#elif defined(__arm64__)
#define NPY_SIZEOF_LONGDOUBLE 8
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
Copy link
Member

Choose a reason for hiding this comment

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

I am trying to build with the macos-provided clang and getting weird errors because of this. @isuruf Shouldn't this be 16/32?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@isuruf Shouldn't this be 16/32?

No, long double is equivalent to double on macos-arm64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0