summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/cpp
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-09-23 18:36:39 +0000
committerSiva Chandra <sivachandra@google.com>2015-09-23 18:36:39 +0000
commit4327d7aa124d9af021a17710a2c3c7dad0ef6416 (patch)
tree1342697e2857ccf732c605a50ae1fcf31c827eaa /lldb/test/lang/cpp
parent1a6534661ba954c1fe54befeae63773c1c695ef1 (diff)
downloadbcm5719-llvm-4327d7aa124d9af021a17710a2c3c7dad0ef6416.tar.gz
bcm5719-llvm-4327d7aa124d9af021a17710a2c3c7dad0ef6416.zip
[TestCppIncompleteTypes] Fix Makefile to handle different archs.
Reviewers: chying Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13111 llvm-svn: 248416
Diffstat (limited to 'lldb/test/lang/cpp')
-rw-r--r--lldb/test/lang/cpp/incomplete-types/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/lang/cpp/incomplete-types/Makefile b/lldb/test/lang/cpp/incomplete-types/Makefile
index 35f7c982a7a..3b670a64908 100644
--- a/lldb/test/lang/cpp/incomplete-types/Makefile
+++ b/lldb/test/lang/cpp/incomplete-types/Makefile
@@ -2,8 +2,8 @@ LEVEL = ../../../make
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 @@ endif
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
OpenPOWER on IntegriCloud