未验证 提交 ccc522c2 编写于 作者: S Stas Bekman 提交者: GitHub

fix empty entry in gcc cmd (#1129)

上级 cf82168c
......@@ -30,7 +30,7 @@ class AsyncIOBuilder(OpBuilder):
return ['csrc/aio/py_lib', 'csrc/aio/common']
def cxx_args(self):
return [
args = [
'-g',
'-Wall',
'-O0',
......@@ -41,9 +41,14 @@ class AsyncIOBuilder(OpBuilder):
'-march=native',
'-fopenmp',
'-laio',
self.simd_width()
]
simd_width = self.simd_width()
if len(simd_width) > 0:
args.append(simd_width)
return args
def extra_ldflags(self):
return ['-laio']
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册