NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/53178 CVS commit: src/tools

On Apr 15,  3:18pm, (Joerg Sonnenberger) wrote:
-- Subject: Re: PR/53178 CVS commit: src/tools

| This is not an appropriate fix. It assumes blindly that the host
| compiler is clang on OSX and doesn't address the reverse case of using
| clang on non-OSX at all. There is a reason why this patch hasn't been
| committed before.

I agree, but that ship had already sailed:

@@ -18,9 +18,12 @@
 .include <>
 # Disable use of pre-compiled headers on Darwin.
+# GCC build exceeds the macOS clang default bracket nesting level of 256.
 BUILD_OSTYPE!= uname -s
 .if ${BUILD_OSTYPE} == "Darwin"
 HOST_CFLAGS+=-O2 -no-cpp-precomp
+HOST_CFLAGS+=-O2 -no-cpp-precomp -fbracket-depth=512
+HOST_CXXFLAGS+= -fbracket-depth=512

"-no-cpp-precomp" is only valid on clang, right?
I mean this did not make the situation any worse...


Home | Main Index | Thread Index | Old Index