提交 0be6def6 authored 作者: Frederic Bastien's avatar Frederic Bastien

Warn about g++ on OSX.

上级 af9a0317
...@@ -442,12 +442,21 @@ if param != "": ...@@ -442,12 +442,21 @@ if param != "":
# to support path that includes spaces, we need to wrap it with double quotes on Windows # to support path that includes spaces, we need to wrap it with double quotes on Windows
if param and os.name == 'nt': if param and os.name == 'nt':
param = '"%s"' % param param = '"%s"' % param
def warn_cxx(val):
"""We only support clang++ as otherwise we hit strange g++/OSX bugs."""
if sys.platform == 'darwin' and val != 'clang++':
_logger.warning("Only clang++ is supported. With g++,"
" we end up with strange g++/OSX bugs.")
return True
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 "
"too difficult. " "too difficult. "
"If it is empty, no C++ code is compiled.", "If it is empty, no C++ code is compiled.",
StrParam(param), StrParam(param, is_valid=warn_cxx),
in_c_key=False) in_c_key=False)
del param del param
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论