Skip to content

Commit 34eca34

Browse files
committed
increase bracket depth if compiling with clang
1 parent c425845 commit 34eca34

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build-devkit.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ case $PLATFORM in
170170
Darwin )
171171
cflags="-mmacosx-version-min=${OSXMIN} -isysroot ${OSXSDKPATH} -I/usr/local/include"
172172
ldflags="-mmacosx-version-min=${OSXMIN} -Wl,-syslibroot,${OSXSDKPATH} -L/usr/local/lib"
173+
TESTCC=`cc -v 2>&1 | grep clang`
174+
if [ "x${TESTCC}x" != "xx" ]; then
175+
cflags="$cflags -fbracket-depth=512"
176+
fi
173177
;;
174178
MINGW32* )
175179
cflags="-D__USE_MINGW_ACCESS"

0 commit comments

Comments
 (0)