Use -fstandalone-debug for few tests to get around a Clang optimization

clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD targets.
Other targets do not, which causes several tests to fail.  This flag
enables FullDebugInfo for all targets.

Fixes the following tests:

TestCallStdStringFunction.py
TestDataFormatterSkipSummary.py
TestDataFormatterStdIterator.py
TestDataFormatterStdList.py
TestDataFormatterStdString.py
TestSBValuePersist.py
TestStringPrinter.py
TestTypeCompletion.py

llvm-svn: 230831
This commit is contained in:
Vince Harron 2015-02-28 01:07:50 +00:00
parent 91c18de755
commit 5a6b8aa4dd
11 changed files with 78 additions and 0 deletions

View File

@ -2,6 +2,13 @@ LEVEL = ../../make
CXX_SOURCES := main.cpp
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules
clean::

View File

@ -2,6 +2,13 @@ LEVEL = ../../../make
CXX_SOURCES := main.cpp
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules
CXXFLAGS += -O0

View File

@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
CFLAGS_EXTRAS := -O0
USE_LIBSTDCPP := 1
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
CFLAGS_EXTRAS := -O0
USE_LIBSTDCPP := 1
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS += -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
CFLAGS_EXTRAS := -O0
USE_LIBSTDCPP := 1
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS += -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -2,4 +2,11 @@ LEVEL = ../../../make
CXX_SOURCES := main.cpp
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -2,4 +2,11 @@ LEVEL = ../../../make
CXX_SOURCES := main.cpp
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -1,4 +1,12 @@
LEVEL = ../../../make
CXX_SOURCES := main.cpp
CXXFLAGS += -std=c++11
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -2,4 +2,11 @@ LEVEL = ../../make
CXX_SOURCES := main.cpp
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS += -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -5,4 +5,11 @@ CFLAGS := -g -O0
clean: OBJECTS+=$(wildcard main.d.*)
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules

View File

@ -5,4 +5,11 @@ CXX_SOURCES := main.cpp
# Clean renamed executable on 'make clean'
clean: OBJECTS+=no_synth
# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD
# targets. Other targets do not, which causes this test to fail.
# This flag enables FullDebugInfo for all targets.
ifneq (,$(findstring clang,$(CC)))
CFLAGS_EXTRAS := -fstandalone-debug
endif
include $(LEVEL)/Makefile.rules