def build_a_library(self, build_info, lib_name, libraries): # Allow late configuration hooks = build_info.get('_pre_build_hook', ()) _run_pre_build_hooks(hooks, (self, build_info)) old_build_clib.build_a_library(self, build_info, lib_name, libraries)
def build_a_library(self, build_info, lib_name, libraries): if _needs_gcc_c99_flag(self): build_info['extra_cflags'] = ['-std=c99'] build_info['extra_cxxflags'] = ['-std=c++11'] build_clib.build_a_library(self, build_info, lib_name, libraries)
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') build_info['extra_compiler_args'] = args build_clib.build_a_library(self, build_info, lib_name, libraries)
def build_a_library(self, build_info, lib_name, libraries): from numpy.distutils.ccompiler_opt import NPY_CXX_FLAGS if _needs_gcc_c99_flag(self): build_info['extra_cflags'] = ['-std=c99'] build_info['extra_cxxflags'] = NPY_CXX_FLAGS build_clib.build_a_library(self, build_info, lib_name, libraries)