-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,19 @@ | |
#define NPY_SIZEOF_LONG 4 | ||
#define NPY_SIZEOF_PY_INTPTR_T 4 | ||
#endif | ||
|
||
#undef NPY_SIZEOF_LONGDOUBLE | ||
#undef NPY_SIZEOF_COMPLEX_LONGDOUBLE | ||
|
||
#ifdef __x86_64 | ||
#define NPY_SIZEOF_LONGDOUBLE 16 | ||
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 | ||
#elif defined(__arm64__) | ||
#define NPY_SIZEOF_LONGDOUBLE 8 | ||
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
No, long double is equivalent to double on macos-arm64 |
||
#else | ||
#error "unknown architecture" | ||
#endif | ||
#endif | ||
|
||
/** | ||
|
Uh oh!
There was an error while loading. Please reload this page.