summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorserge-sans-paille <serge.guelton@telecom-bretagne.eu>2021-11-10 09:03:03 +0100
committerserge-sans-paille <serge.guelton@telecom-bretagne.eu>2021-11-10 09:03:03 +0100
commit37cbe22f16b6460024854f96461b11c79e08d7c1 (patch)
treef11f25b4e9978e0cadcbf1cf8de11e0b6a818c1c
parente1239e7152c87fa97266f62e107d383905e6006c (diff)
downloadnumpy-37cbe22f16b6460024854f96461b11c79e08d7c1.tar.gz
Do not position 'cxx=-std=c++11' as a default compiler flag
Otherwise it gets used for C source too, which is either useless or invalid (for clang(family compiler) Fix #20335
-rw-r--r--numpy/distutils/ccompiler_opt.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/numpy/distutils/ccompiler_opt.py b/numpy/distutils/ccompiler_opt.py
index d7df386fe..85bf5d0d1 100644
--- a/numpy/distutils/ccompiler_opt.py
+++ b/numpy/distutils/ccompiler_opt.py
@@ -196,7 +196,6 @@ class _Config:
native = '-march=native',
opt = '-O3',
werror = '-Werror',
- cxx = '-std=c++11',
),
clang = dict(
native = '-march=native',
@@ -207,25 +206,21 @@ class _Config:
# "unused arguments" warnings.
# see https://github.com/numpy/numpy/issues/19624
werror = '-Werror=switch -Werror',
- cxx = '-std=c++11',
),
icc = dict(
native = '-xHost',
opt = '-O3',
werror = '-Werror',
- cxx = '-std=c++11',
),
iccw = dict(
native = '/QxHost',
opt = '/O3',
werror = '/Werror',
- cxx = '-std=c++11',
),
msvc = dict(
native = None,
opt = '/O2',
werror = '/WX',
- cxx = '-std=c++11',
)
)
conf_min_features = dict(