diff options
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 25efebad7..b3013d299 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -686,7 +686,10 @@ def configuration(parent_package='',top_path=None): join('src', 'npymath', 'halffloat.c') ] - is_msvc = customized_ccompiler().compiler_type == 'msvc' + compiler_type = customized_ccompiler().compiler_type + is_msvc = compiler_type == 'msvc' + is_msvc = is_msvc or (sys.platform == 'win32' and compiler_type in ('clang', 'intel')) + config.add_installed_library('npymath', sources=npymath_sources + [get_mathlib_info], install_dir='lib', |