提交 3089eb80 authored 作者: Frederic Bastien's avatar Frederic Bastien

Correctly disable g++ on windows when it isn't available. This cause sometimes…

Correctly disable g++ on windows when it isn't available. This cause sometimes an import error related to gof. Othertime compilation errors.
上级 a6f7beb7
...@@ -141,14 +141,17 @@ param = "g++" ...@@ -141,14 +141,17 @@ param = "g++"
try: try:
rc = call_subprocess_Popen(['g++', '-v']) rc = call_subprocess_Popen(['g++', '-v'])
except OSError: except OSError:
param = ""
rc = 1 rc = 1
if rc != 0:
param = ""
# On Mac we test for 'clang++' and use it by default # On Mac we test for 'clang++' and use it by default
if sys.platform == 'darwin': if sys.platform == 'darwin':
try: try:
rc = call_subprocess_Popen(['clang++', '-v']) rc = call_subprocess_Popen(['clang++', '-v'])
param = "clang++" if rc == 0:
param = "clang++"
except OSError: except OSError:
pass pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论