Skip to content

Commit

Permalink
BLD: treat SVML object files better to avoid compiler warnings
Browse files Browse the repository at this point in the history
GCC and Clang didn't mind passing unused compile flags when
building object files, but the OneAPI Intel compilers emit
warnings like:
```
[422/593] Compiling C object numpy/_core/_multiarray_umath.cpython-311-x86_64-linux-gnu.so.p/src_umath_svml_linux_avx512_svml_z0_asin_d_la.s.o
icx: warning: argument unused during compilation: '-fvisibility=hidden' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-fdiagnostics-color=always' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-fno-strict-aliasing' [-Wunused-command-line-argument]
icx: warning: argument unused during compilation: '-D NPY_HAVE_SSE2' [-Wunused-command-line-argument]
```
  • Loading branch information
rgommers committed Oct 18, 2024
1 parent d4d9705 commit d5ce2f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/_core/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,8 @@ py.extension_module('_multiarray_umath',
src_numpy_api[1], # __multiarray_api.h
src_umath_doc_h,
npy_math_internal_h,
] + svml_objects,
],
objects: svml_objects,
c_args: c_args_common,
cpp_args: cpp_args_common,
include_directories: [
Expand Down

0 comments on commit d5ce2f8

Please sign in to comment.