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:
parent
91c18de755
commit
5a6b8aa4dd
|
@ -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::
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue