summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-11-06 08:44:45 +1100
committerChris Johns <chrisj@rtems.org>2014-11-06 08:44:45 +1100
commit5821b02e82c0e6667b2a0bbbb97da040a70b1987 (patch)
treee3929d2303bfe6e5ce43e017b4e3adba5d58a3b4
parentrtems4.11: Use rtems-tools HEAD for 4.11 until stable. (diff)
downloadrtems-source-builder-5821b02e82c0e6667b2a0bbbb97da040a70b1987.tar.bz2
sb: FreeBSD uses clang for cc on version 10 and later.
-rw-r--r--source-builder/sb/freebsd.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/source-builder/sb/freebsd.py b/source-builder/sb/freebsd.py
index 7666b96..714798f 100644
--- a/source-builder/sb/freebsd.py
+++ b/source-builder/sb/freebsd.py
@@ -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