4 DWARF2_SUPPORT_BROKEN=no
11 if "$COMPILER" -c dwarf2.c -Werror -gdwarf-2 2>/dev/null 1>&2; then
12 if "$COMPILER" -c dwarf2.c -Werror -gdwarf-2 2>&1 | grep "unsupported" >/dev/null ; then
18 rm -f dwarf2.c dwarf2.o
20 # Test for xcode 2.4.0, which has a broken implementation of DWARF
21 "$COMPILER" $WORKDIR/xcodeversion.cpp -o xcodeversion -framework Carbon;
24 if [ "$?" == "1" ]; then
25 DWARF2_SUPPORT_BROKEN=yes
31 if [ "$DWARF2_SUPPORT" != "yes" ]; then
32 [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
35 if [ "$DWARF2_SUPPORT_BROKEN" == "yes" ]; then
36 [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
39 [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols enabled."