Skip to content

Commit 37cbe22

Browse files
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 numpy#20335
1 parent e1239e7 commit 37cbe22

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

numpy/distutils/ccompiler_opt.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ class _Config:
196196
native = '-march=native',
197197
opt = '-O3',
198198
werror = '-Werror',
199-
cxx = '-std=c++11',
200199
),
201200
clang = dict(
202201
native = '-march=native',
@@ -207,25 +206,21 @@ class _Config:
207206
# "unused arguments" warnings.
208207
# see https://github.com/numpy/numpy/issues/19624
209208
werror = '-Werror=switch -Werror',
210-
cxx = '-std=c++11',
211209
),
212210
icc = dict(
213211
native = '-xHost',
214212
opt = '-O3',
215213
werror = '-Werror',
216-
cxx = '-std=c++11',
217214
),
218215
iccw = dict(
219216
native = '/QxHost',
220217
opt = '/O3',
221218
werror = '/Werror',
222-
cxx = '-std=c++11',
223219
),
224220
msvc = dict(
225221
native = None,
226222
opt = '/O2',
227223
werror = '/WX',
228-
cxx = '-std=c++11',
229224
)
230225
)
231226
conf_min_features = dict(

0 commit comments

Comments
 (0)