summaryrefslogtreecommitdiffstats
path: root/config.tests/mac/dwarf2.test
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2012-05-11 10:03:49 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-11 12:52:21 +0200
commit7a67c822e3e552d0d881f0409a5316de07dbb8c7 (patch)
tree408565ec54a369869ea68433e68d62321e8b9c08 /config.tests/mac/dwarf2.test
parent28dc0a0fa1f645d1d8d86abf2cf3df1913dc96c4 (diff)
configure: Remove the -dwarf2 argument for Mac OS X builds
Modern versions of Xcode properly support dwarf2, and as such dwarf2 is always enabled. This change removes the ability to turn it off, making dwarf2 non-optional. Change-Id: I149daeae6048ee8a1ed116363572173ad219102e Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Diffstat (limited to 'config.tests/mac/dwarf2.test')
-rwxr-xr-xconfig.tests/mac/dwarf2.test42
1 files changed, 0 insertions, 42 deletions
diff --git a/config.tests/mac/dwarf2.test b/config.tests/mac/dwarf2.test
deleted file mode 100755
index a640b113de..0000000000
--- a/config.tests/mac/dwarf2.test
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/sh
-
-DWARF2_SUPPORT=no
-DWARF2_SUPPORT_BROKEN=no
-COMPILER=$1
-VERBOSE=$2
-WORKDIR=$3
-
-touch dwarf2.c
-
-if "$COMPILER" -c dwarf2.c -Werror -gdwarf-2 2>/dev/null 1>&2; then
- if "$COMPILER" -c dwarf2.c -Werror -gdwarf-2 2>&1 | grep "unsupported" >/dev/null ; then
- true
- else
- DWARF2_SUPPORT=yes
- fi
-fi
-rm -f dwarf2.c dwarf2.o
-
-# Test for xcode 2.4.0, which has a broken implementation of DWARF
-"$COMPILER" $WORKDIR/xcodeversion.cpp -o xcodeversion -framework Carbon;
-./xcodeversion
-
-if [ "$?" == "1" ]; then
- DWARF2_SUPPORT_BROKEN=yes
-fi
-
-rm xcodeversion
-
-# done
-if [ "$DWARF2_SUPPORT" != "yes" ]; then
- [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
- exit 0
-else
- if [ "$DWARF2_SUPPORT_BROKEN" == "yes" ]; then
- [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols disabled."
- exit 0
- else
- [ "$VERBOSE" = "yes" ] && echo "DWARF2 debug symbols enabled."
- exit 1
- fi
-fi