提交 ce87fadd authored 作者: Frederic's avatar Frederic

if the user pass any -march=X flags, don't try to add them ourself.

上级 11a2b8e8
......@@ -1496,12 +1496,6 @@ class GCC_compiler(object):
# http://en.gentoo-wiki.com/wiki/Hardware_CFLAGS
detect_march = GCC_compiler.march_flags is None
#We will add it ourself in a safe way, so remove them.
if '-march=native' in cxxflags:
cxxflags.remove('-march=native')
if '--march=native' in cxxflags:
cxxflags.remove('--march=native')
if detect_march:
for f in cxxflags:
#If the user give an -march=X parameter, don't add one ourself
......@@ -1512,6 +1506,7 @@ class GCC_compiler(object):
" It is better to let Theano/g++ find it"
" automatically, but we don't do it now")
detect_march = False
break
if detect_march:
GCC_compiler.march_flags = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论