提交 a7175d00 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Use clang++ on mac (if present).

上级 33c507f0
import os import os
import sys
import logging import logging
import theano import theano
...@@ -139,6 +140,15 @@ try: ...@@ -139,6 +140,15 @@ try:
except OSError: except OSError:
param = StrParam("") param = StrParam("")
rc = 1 rc = 1
# On Mac we test for 'clang++' and use it by default
if sys.platform == 'darwin':
try:
rc = call_subprocess_Popen(['clang++', '-v'])
param = StrParam("clang++")
except OSError:
pass
AddConfigVar('cxx', AddConfigVar('cxx',
"The C++ compiler to use. Currently only g++ is" "The C++ compiler to use. Currently only g++ is"
" supported, but supporting additional compilers should not be " " supported, but supporting additional compilers should not be "
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论