summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorxoviat <xoviat@users.noreply.github.com>2017-11-08 17:03:37 -0600
committerGitHub <noreply@github.com>2017-11-08 17:03:37 -0600
commit41bae1ed7fa47213b45abacdf7ed19abdb58c7b3 (patch)
tree35bb0c89860f7c30303fc76a826d198789b888be /numpy/core/setup.py
parent5de0cfd610a543b8483b5fe2d54d000ec4c19bd6 (diff)
downloadnumpy-41bae1ed7fa47213b45abacdf7ed19abdb58c7b3.tar.gz
BUG: distutils: kill npymath LTCG on clang, intel
Disable link-time code generation for intel and clang compilers if the platform is win32.
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py5
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',