提交 fd2f68d2 authored 作者: abergeron's avatar abergeron

Merge pull request #1629 from nouiz/march

[MRG] Fix crash when specifing march in cxxflags.
...@@ -1714,7 +1714,7 @@ class GCC_compiler(object): ...@@ -1714,7 +1714,7 @@ class GCC_compiler(object):
# or 64 bit and compile accordingly. This step is ignored for ARM # or 64 bit and compile accordingly. This step is ignored for ARM
# architectures in order to make Theano compatible with the Raspberry # architectures in order to make Theano compatible with the Raspberry
# Pi. # Pi.
if any([not 'arm' in flag for flag in GCC_compiler.march_flags]): if any([not 'arm' in flag for flag in cxxflags]):
n_bits = local_bitwidth() n_bits = local_bitwidth()
cxxflags.append('-m%d' % n_bits) cxxflags.append('-m%d' % n_bits)
_logger.debug("Compiling for %s bit architecture", n_bits) _logger.debug("Compiling for %s bit architecture", n_bits)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论