提交 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,11 +1934,9 @@ class GCC_compiler(Compiler): ...@@ -1934,11 +1934,9 @@ class GCC_compiler(Compiler):
"CXXFLAGS=" in line or "CXXFLAGS=" in line or
"-march=native" in line): "-march=native" in line):
continue continue
elif "-march=" in line: for reg in ["-march=", "-mtune=",
selected_lines.append(line.strip()) "-target-cpu", "-mabi="]:
elif "-mtune=" in line: if reg in line:
selected_lines.append(line.strip())
elif "-target-cpu" in line:
selected_lines.append(line.strip()) selected_lines.append(line.strip())
lines = list(set(selected_lines)) # to remove duplicate lines = list(set(selected_lines)) # to remove duplicate
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论