forked from OSchip/llvm-project
[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:
parent
1a6534661b
commit
4327d7aa12
|
@ -2,8 +2,8 @@ LEVEL = ../../../make
|
||||||
|
|
||||||
CXX_SOURCES = main.cpp length.cpp
|
CXX_SOURCES = main.cpp length.cpp
|
||||||
|
|
||||||
CFLAGS_LIMIT = -g -O0 -c
|
CFLAGS_LIMIT = -c $(CXXFLAGS)
|
||||||
CFLAGS_NO_LIMIT = -g -O0 -c
|
CFLAGS_NO_LIMIT = -c $(CXXFLAGS)
|
||||||
|
|
||||||
ifneq (,$(findstring clang,$(CC)))
|
ifneq (,$(findstring clang,$(CC)))
|
||||||
CFLAGS_LIMIT += -flimit-debug-info
|
CFLAGS_LIMIT += -flimit-debug-info
|
||||||
|
@ -13,10 +13,10 @@ endif
|
||||||
all: limit nolimit
|
all: limit nolimit
|
||||||
|
|
||||||
limit: main.o length_limit.o
|
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
|
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
|
main.o: main.cpp
|
||||||
$(CXX) $(CFLAGS_LIMIT) main.cpp -o main.o
|
$(CXX) $(CFLAGS_LIMIT) main.cpp -o main.o
|
||||||
|
|
Loading…
Reference in New Issue