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

Remove /dev/null as it is not supported on windows and there is a work around elsewhere for that.

上级 58892f26
...@@ -1572,6 +1572,7 @@ class GCC_compiler(object): ...@@ -1572,6 +1572,7 @@ class GCC_compiler(object):
lines = stdout + stderr lines = stdout + stderr
return lines return lines
# The '-' at the end is needed. Otherwise, g++ do not output enough information.
native_lines = get_lines("g++ -march=native -E -v -") native_lines = get_lines("g++ -march=native -E -v -")
_logger.info("g++ -march=native selected lines: %s", native_lines) _logger.info("g++ -march=native selected lines: %s", native_lines)
if len(native_lines) != 1: if len(native_lines) != 1:
...@@ -1583,7 +1584,7 @@ class GCC_compiler(object): ...@@ -1583,7 +1584,7 @@ class GCC_compiler(object):
" Theano's mailing list such that we fix this" " Theano's mailing list such that we fix this"
" problem:\n %s", native_lines) " problem:\n %s", native_lines)
else: else:
default_lines = get_lines("g++ -E -v - </dev/null") default_lines = get_lines("g++ -E -v -")
_logger.info("g++ default lines: %s", default_lines) _logger.info("g++ default lines: %s", default_lines)
if len(default_lines) < 1: if len(default_lines) < 1:
_logger.warn( _logger.warn(
...@@ -1594,7 +1595,7 @@ class GCC_compiler(object): ...@@ -1594,7 +1595,7 @@ class GCC_compiler(object):
" function. Can you submit the following lines to" " function. Can you submit the following lines to"
" Theano's mailing list such that we fix this" " Theano's mailing list such that we fix this"
" problem:\n %s", " problem:\n %s",
get_lines("g++ -E -v - </dev/null", parse=False)) get_lines("g++ -E -v -", parse=False))
else: else:
part = native_lines[0].split() part = native_lines[0].split()
for line in default_lines: for line in default_lines:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论