8000 improve configure checks for broken systems by juliantaylor · Pull Request #8141 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

improve configure checks for broken systems #8141

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 2 commits into from
Oct 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
MAINT: make sure __builtin_cpu_supports is not optimized away
OSX 10.11 ships a clang that uses it but does not implement the necesary
library function
closes gh-8130
  • Loading branch information
juliantaylor committed Oct 11, 2016
commit 5b38e86dc118ed3afece54cb6b01bef0c7a1a4df
4 changes: 3 additions & 1 deletion numpy/core/setup_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ def check_api_version(apiversion, codegen_dir):
("__builtin_bswap64", '5u'),
("__builtin_expect", '5, 0'),
("__builtin_mul_overflow", '5, 5, (int*)5'),
("__builtin_cpu_supports", '"sse"'),
# broken on OSX 10.11, make sure its not optimized away
("volatile int r = __builtin_cpu_supports", '"sse"',
"stdio.h", "__BUILTIN_CPU_SUPPORTS"),
("_mm_load_ps", '(float*)0', "xmmintrin.h"), # SSE
("_mm_prefetch", '(float*)0, _MM_HINT_NTA',
"xmmintrin.h"), # SSE
Expand Down
0