8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2f11271 + 3f83722 commit a796a99Copy full SHA for a796a99
numpy/distutils/command/build_ext.py
@@ -393,8 +393,8 @@ def build_extension(self, ext):
393
log.info("building '%s' extension", ext.name)
394
395
extra_args = ext.extra_compile_args or []
396
- extra_cflags = ext.extra_c_compile_args or []
397
- extra_cxxflags = ext.extra_cxx_compile_args or []
+ extra_cflags = getattr(ext, 'extra_c_compile_args', None) or []
+ extra_cxxflags = getattr(ext, 'extra_cxx_compile_args', None) or []
398
399
macros = ext.define_macros[:]
400
for undef in ext.undef_macros:
0 commit comments