[Lldb-commits] [PATCH] D13111: [TestCppIncompleteTypes] Fix Makefile to handle different archs.

Siva Chandra via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 23 11:37:23 PDT 2015


sivachandra created this revision.
sivachandra added a reviewer: chying.
sivachandra added a subscriber: lldb-commits.

http://reviews.llvm.org/D13111

Files:
  test/lang/cpp/incomplete-types/Makefile

Index: test/lang/cpp/incomplete-types/Makefile
===================================================================
--- test/lang/cpp/incomplete-types/Makefile
+++ test/lang/cpp/incomplete-types/Makefile
@@ -2,8 +2,8 @@
 
 CXX_SOURCES = main.cpp length.cpp
 
-CFLAGS_LIMIT = -g -O0 -c
-CFLAGS_NO_LIMIT = -g -O0 -c
+CFLAGS_LIMIT = -c $(CXXFLAGS)
+CFLAGS_NO_LIMIT = -c $(CXXFLAGS)
 
 ifneq (,$(findstring clang,$(CC)))
   CFLAGS_LIMIT += -flimit-debug-info
@@ -13,10 +13,10 @@
 all: limit nolimit
 
 limit: main.o length_limit.o
-	$(CXX) main.o length_limit.o -o limit
+	$(CXX) $(LDFLAGS) main.o length_limit.o -o limit
 
 nolimit: main.o length_nolimit.o
-	$(CXX) main.o length_nolimit.o -o nolimit
+	$(CXX) $(LDFLAGS) main.o length_nolimit.o -o nolimit
 
 main.o: main.cpp
 	$(CXX) $(CFLAGS_LIMIT) main.cpp -o main.o


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13111.35535.patch
Type: text/x-patch
Size: 816 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150923/75cec046/attachment-0001.bin>


More information about the lldb-commits mailing list