Skip to content

BUG: Fix headers for universal2 builds#20270

Merged
charris merged 1 commit intonumpy:mainfrom
isuruf:headers
Nov 1, 2021
Merged

BUG: Fix headers for universal2 builds#20270
charris merged 1 commit intonumpy:mainfrom
isuruf:headers

Conversation

@isuruf
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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