提交 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++"
try:
rc = call_subprocess_Popen(['g++', '-v'])
except OSError:
param = ""
rc = 1
if rc != 0:
param = ""
# On Mac we test for 'clang++' and use it by default
if sys.platform == 'darwin':
try:
rc = call_subprocess_Popen(['clang++', '-v'])
param = "clang++"
if rc == 0:
param = "clang++"
except OSError:
pass
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论