summaryrefslogtreecommitdiff
path: root/numpy/random/setup.py
diff options
context:
space:
mode:
authorMatthew Brett <matthew.brett@gmail.com>2021-10-26 07:19:44 +0100
committerGitHub <noreply@github.com>2021-10-26 07:19:44 +0100
commit3263cc6ef528cdd48bd72651ab735dd75c3339c2 (patch)
tree09e49dd07795e438c3fc73e320b142a616b984e3 /numpy/random/setup.py
parent07778e58fbb5bd0e5172a9c1a99c391144ed41de (diff)
downloadnumpy-3263cc6ef528cdd48bd72651ab735dd75c3339c2.tar.gz
Apply suggestions from code review
Co-authored-by: Matti Picus <matti.picus@gmail.com>
Diffstat (limited to 'numpy/random/setup.py')
-rw-r--r--numpy/random/setup.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/random/setup.py b/numpy/random/setup.py
index 59a30d2b6..866c0cb2f 100644
--- a/numpy/random/setup.py
+++ b/numpy/random/setup.py
@@ -73,7 +73,9 @@ def configuration(parent_package='', top_path=None):
distutils build command, so use this deferred calculation to run when
we are building the library.
"""
+ # Keep in sync with numpy/core/setup.py
if build_cmd.compiler.compiler_type == 'msvc':
+ # explicitly disable whole-program optimization
return ['/GL-']
return []