提交 689362ec authored 作者: Frederic's avatar Frederic

Be more selective when detecting the -march=native flags to use.

上级 855cebc5
......@@ -1518,8 +1518,9 @@ class GCC_compiler(object):
stderr = p.stderr.readlines()
lines = []
for line in stdout + stderr:
if "march" in line:
if "-march=" in line and "-march=native" not in line:
lines.append(line.strip())
lines = list(set(lines)) # to remove duplicate
return lines
native_lines = get_lines("g++ -march=native -E -v - </dev/null")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论