summaryrefslogtreecommitdiff
path: root/numpy/distutils/command
diff options
context:
space:
mode:
authorSayed Adel <seiko@imavr.com>2023-03-15 21:24:04 +0200
committerSayed Adel <seiko@imavr.com>2023-04-04 04:13:01 +0200
commitd183edf54e3c74c52471c694068ec7fcc5f7aa34 (patch)
treef5fb19ae237cc9dcc88d8cb154b13eac5e01bea9 /numpy/distutils/command
parent08e778407064c37d6f814e0c59065344dea1ec2a (diff)
downloadnumpy-d183edf54e3c74c52471c694068ec7fcc5f7aa34.tar.gz
ENH: Raise C++ standard to C++17
Diffstat (limited to 'numpy/distutils/command')
-rw-r--r--numpy/distutils/command/build_clib.py1
-rw-r--r--numpy/distutils/command/build_ext.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/numpy/distutils/command/build_clib.py b/numpy/distutils/command/build_clib.py
index 45201f98f..11999dae2 100644
--- a/numpy/distutils/command/build_clib.py
+++ b/numpy/distutils/command/build_clib.py
@@ -307,6 +307,7 @@ class build_clib(old_build_clib):
# problem, msvc uses its own convention :(
c_sources += cxx_sources
cxx_sources = []
+ extra_cflags += extra_cxxflags
# filtering C dispatch-table sources when optimization is not disabled,
# otherwise treated as normal sources.
diff --git a/numpy/distutils/command/build_ext.py b/numpy/distutils/command/build_ext.py
index 6dc6b4265..d24162a42 100644
--- a/numpy/distutils/command/build_ext.py
+++ b/numpy/distutils/command/build_ext.py
@@ -407,6 +407,7 @@ class build_ext (old_build_ext):
if cxx_sources:
# Needed to compile kiva.agg._agg extension.
extra_args.append('/Zm1000')
+ extra_cflags += extra_cxxflags
# this hack works around the msvc compiler attributes
# problem, msvc uses its own convention :(
c_sources += cxx_sources