def build_extensions(self):
extra_compile_args = ['-w', '-Ofast']
cmd = "echo | %s -E - %s &>/dev/null" % (
self.compiler.compiler[0], " ".join(extra_compile_args))
try:
subprocess.check_call(cmd, shell=True)
except:
extra_compile_args = ['-w', '-O3']
for e in self.extensions:
e.extra_compile_args = extra_compile_args
build_ext.build_extensions(self)
评论列表
文章目录