[TestCppIncompleteTypes] Fix Makefile to handle different archs.

Reviewers: chying

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D13111

llvm-svn: 248416
This commit is contained in:
Siva Chandra 2015-09-23 18:36:39 +00:00
parent 1a6534661b
commit 4327d7aa12
1 changed files with 4 additions and 4 deletions

View File

@ -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