diff options
author | xoviat <xoviat@users.noreply.github.com> | 2017-11-05 15:06:58 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2017-11-05 14:06:58 -0700 |
commit | b1837eab51eb5884835e3df290157bb891ba3be9 (patch) | |
tree | 88ec2557db7ea6ad065d55259c2ac1cfbd303d37 /numpy/core/setup.py | |
parent | 5d4b6a1b2ade193e9929a4dad32b695491cd817e (diff) | |
download | numpy-b1837eab51eb5884835e3df290157bb891ba3be9.tar.gz |
BLD: [core:setup] disable npymath whole program opt on win32 (#9965)
fBLD: Disable npymath whole program opt (LTCG) on win32
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 366d14318..b87070d77 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -688,7 +688,10 @@ def configuration(parent_package='',top_path=None): config.add_installed_library('npymath', sources=npymath_sources + [get_mathlib_info], install_dir='lib', - build_info={'include_dirs' : []}) # empty list required for creating npy_math_internal.h + build_info={ + 'include_dirs' : [], + 'extra_compiler_args' : (['/GL-'] if sys.platform == 'win32' else []), + }) # empty list required for creating npy_math_internal.h config.add_npy_pkg_config("npymath.ini.in", "lib/npy-pkg-config", subst_dict) config.add_npy_pkg_config("mlib.ini.in", "lib/npy-pkg-config", |