diff options
author | Sean Callanan <scallanan@apple.com> | 2016-06-07 17:22:18 +0000 |
---|---|---|
committer | Sean Callanan <scallanan@apple.com> | 2016-06-07 17:22:18 +0000 |
commit | 968bb72f5869fe524c64ab520f66b05a57c3f561 (patch) | |
tree | 432e3778b2d3a4fbfbb5202c91bd9ebad8edecc8 /lldb/packages/Python/lldbsuite/test/lang | |
parent | 486f49cc63fa593bbc29817dba9f375b6aeb7e3c (diff) | |
download | bcm5719-llvm-968bb72f5869fe524c64ab520f66b05a57c3f561.tar.gz bcm5719-llvm-968bb72f5869fe524c64ab520f66b05a57c3f561.zip |
Make lldbinline.py regenerate the Makefile each time it builds.
If a lldbinline test's source file changed language, then the Makefile wasn't
updated. This was a problem if the Makefile was checked into the repository.
Now lldbinline.py always regenerates the Makefile and asserts if the
newly-generated version is not the same as the one already there. This ensures
that the repository will never be out of date without a buildbot failing.
http://reviews.llvm.org/D21032
llvm-svn: 272024
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang')
4 files changed, 32 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/c/struct_types/Makefile b/lldb/packages/Python/lldbsuite/test/lang/c/struct_types/Makefile index cd9ca5c86d8..e2eb16515a6 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/c/struct_types/Makefile +++ b/lldb/packages/Python/lldbsuite/test/lang/c/struct_types/Makefile @@ -1,3 +1,12 @@ LEVEL = ../../../make C_SOURCES := main.c +ifneq (,$(findstring clang,$(CC))) + CFLAGS_EXTRAS += -fno-limit-debug-info +endif + include $(LEVEL)/Makefile.rules + + +cleanup: + rm -f Makefile *.d + diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/const_this/Makefile b/lldb/packages/Python/lldbsuite/test/lang/cpp/const_this/Makefile index 52a92c0b61a..ced3f7aab56 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/const_this/Makefile +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/const_this/Makefile @@ -1,8 +1,13 @@ LEVEL = ../../../make CXX_SOURCES := main.cpp CXXFLAGS += -std=c++11 +ifneq (,$(findstring clang,$(CC))) + CFLAGS_EXTRAS += -fno-limit-debug-info +endif + include $(LEVEL)/Makefile.rules + cleanup: rm -f Makefile *.d diff --git a/lldb/packages/Python/lldbsuite/test/lang/cpp/extern_c/Makefile b/lldb/packages/Python/lldbsuite/test/lang/cpp/extern_c/Makefile index 99bfa7e03b4..ced3f7aab56 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/cpp/extern_c/Makefile +++ b/lldb/packages/Python/lldbsuite/test/lang/cpp/extern_c/Makefile @@ -1,3 +1,13 @@ LEVEL = ../../../make CXX_SOURCES := main.cpp +CXXFLAGS += -std=c++11 +ifneq (,$(findstring clang,$(CC))) + CFLAGS_EXTRAS += -fno-limit-debug-info +endif + include $(LEVEL)/Makefile.rules + + +cleanup: + rm -f Makefile *.d + diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/Makefile b/lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/Makefile index a1608fe5a66..23b1e08598b 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/Makefile +++ b/lldb/packages/Python/lldbsuite/test/lang/objc/objc-runtime-ivars/Makefile @@ -1,6 +1,13 @@ LEVEL = ../../../make - OBJC_SOURCES := main.m LDFLAGS = $(CFLAGS) -lobjc -framework Foundation +ifneq (,$(findstring clang,$(CC))) + CFLAGS_EXTRAS += -fno-limit-debug-info +endif include $(LEVEL)/Makefile.rules + + +cleanup: + rm -f Makefile *.d + |