提交 0ee21c35 authored 作者: Frederic Bastien's avatar Frederic Bastien

Fix warning/detection on tx1. I suppose it is an update to there compiler, as…

Fix warning/detection on tx1. I suppose it is an update to there compiler, as from memory, it working in the past.
上级 60c75959
......@@ -1934,12 +1934,10 @@ class GCC_compiler(Compiler):
"CXXFLAGS=" in line or
"-march=native" in line):
continue
elif "-march=" in line:
selected_lines.append(line.strip())
elif "-mtune=" in line:
selected_lines.append(line.strip())
elif "-target-cpu" in line:
selected_lines.append(line.strip())
for reg in ["-march=", "-mtune=",
"-target-cpu", "-mabi="]:
if reg in line:
selected_lines.append(line.strip())
lines = list(set(selected_lines)) # to remove duplicate
return lines
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论