-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: (#1221) special case mac os x in numpyconfig.h
Universal builds break the configure stage: we have to harcode the arch-specific values in the case of mac os x, as we have only one configuration stage per compile, but several arch per compile with the braindead -arch machinery. We rename the old numpyconfig.h to a private header, and numpyconfig.h itself post-fix the values in the case of mac os x. (cherry picked from commit 60e90d68441f40e45b0e38bda396b8056bf31fc5)
- Loading branch information
Showing
5 changed files
with
34 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
numpy/core/include/numpy/numpyconfig.h.in → numpy/core/include/numpy/_numpyconfig.h.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef _NPY_NUMPYCONFIG_H_ | ||
#define _NPY_NUMPYCONFIG_H_ | ||
|
||
#include "_numpyconfig.h" | ||
|
||
/* | ||
* On Mac OS X, because there is only one configuration stage for all the archs | ||
* in universal builds, any macro which depends on the arch needs to be | ||
* harcoded | ||
*/ | ||
#ifdef __APPLE__ | ||
#undef NPY_SIZEOF_LONG | ||
#undef NPY_SIZEOF_PY_INTPTR_T | ||
|
||
#ifdef __LP64__ | ||
#define NPY_SIZEOF_LONG 8 | ||
#define NPY_SIZEOF_PY_INTPTR_T 8 | ||
#else | ||
#define NPY_SIZEOF_LONG 4 | ||
#define NPY_SIZEOF_PY_INTPTR_T 4 | ||
#endif | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters