sb: FreeBSD uses clang for cc on version 10 and later.

This commit is contained in:
Chris Johns 2014-11-06 08:44:45 +11:00
parent ae11ecf093
commit 5821b02e82

View File

@ -96,8 +96,12 @@ def load():
cxx = '/usr/bin/clang++'
if check.check_exe(cxx, cxx):
raise error.general('no valid c++ not found')
defines['build_cflags'] = '-O2 -pipe -fbracket-depth=1024'
defines['build_cxxflags'] = '-O2 -pipe -fbracket-depth=1024'
#
# Assume the compiler is clang and so we need to increase
# bracket depth build build the gcc ARM compiler.
#
defines['build_cflags'] = '-O2 -pipe -fbracket-depth=1024'
defines['build_cxxflags'] = '-O2 -pipe -fbracket-depth=1024'
cvs = 'cvs'
if check.check_exe(cvs, cvs):
defines['__cvs'] = cvs