diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2021-10-23 16:14:43 +0100 |
---|---|---|
committer | Matthew Brett <matthew.brett@gmail.com> | 2021-10-23 18:33:16 +0100 |
commit | 07778e58fbb5bd0e5172a9c1a99c391144ed41de (patch) | |
tree | 404f6243cf10b9e0a9f6ee0786962eaf76061c33 /numpy/array_api/_elementwise_functions.py | |
parent | 6409a721c17aae94cfd55ccbcf26a95494dd1cf8 (diff) | |
download | numpy-07778e58fbb5bd0e5172a9c1a99c391144ed41de.tar.gz |
Allow clib callable build flags
At the moment, we are guessing whether we have the MSVC compiler, by
looking at what Python was originally compiled for. That works only if
we are using the same compiler, but this is not the case when we compile
with e.g. mingw-w64 using Python.org Python.
Unfortunately, at the time we are specifying build flags, we don't know
what compiler we are using.
Allow build flags to clib to be callables that return lists of strings,
instead of strings, where the callables can do work like inspecting the
compiler, at build time.
Use this to check for MSVC at build time, when specifying the
`/GL-` flag.
See gh-9977 for a related discussion about these flags.
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions