def build_clib_pre_build_hook(cmd, ext): from scipy._build_utils.compiler_helper import get_cxx_std_flag std_flag = get_cxx_std_flag(cmd.compiler) ext.setdefault('extra_compiler_args', []) if std_flag is not None: ext['extra_compiler_args'].append(std_flag)
def pre_build_hook(build_ext, ext): from scipy._build_utils.compiler_helper import get_cxx_std_flag std_flag = get_cxx_std_flag(build_ext._cxx_compiler) if std_flag is not None: ext.extra_compile_args.append(std_flag)