diff options
author | mattip <matti.picus@gmail.com> | 2020-01-05 17:00:30 +0200 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2020-01-05 17:00:30 +0200 |
commit | c2f930017ab05b32a503e622cee671add7abb78e (patch) | |
tree | 4e09966901d186b4f091e42d317d0df05b7ba04a /setup.py | |
parent | 18af8e00711f62a5aa2c9b0c4f1225be49877a38 (diff) | |
download | numpy-c2f930017ab05b32a503e622cee671add7abb78e.tar.gz |
MAINT: --std=c99 works, but -std=c99 is better
Diffstat (limited to 'setup.py')
-rwxr-xr-x | setup.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -228,7 +228,7 @@ class sdist_checked(sdist): def get_build_overrides(): """ - Custom build commands to add `--std=c99` to compilation + Custom build commands to add `-std=c99` to compilation """ from numpy.distutils.command.build_clib import build_clib from numpy.distutils.command.build_ext import build_ext @@ -247,15 +247,15 @@ def get_build_overrides(): def build_a_library(self, build_info, lib_name, libraries): if _is_using_gcc(self): args = build_info.get('extra_compiler_args') or [] - args.append('--std=c99') + args.append('-std=c99') build_info['extra_compiler_args'] = args build_clib.build_a_library(self, build_info, lib_name, libraries) class new_build_ext(build_ext): def build_extension(self, ext): if _is_using_gcc(self): - if '--std=c99' not in ext.extra_compile_args: - ext.extra_compile_args.append('--std=c99') + if '-std=c99' not in ext.extra_compile_args: + ext.extra_compile_args.append('-std=c99') build_ext.build_extension(self, ext) return new_build_clib, new_build_ext |