teak-llvm/lldb/packages/Python/lldbsuite/test/lang/objcxx/class-name-clash/Makefile
Jason Molenda f79f594bd2 When building file without debug info, include the architecture
setting in the cflags on Darwin systems.

llvm-svn: 369584
2019-08-21 21:34:17 +00:00

12 lines
287 B
Makefile

LEVEL = ../../../make
OBJCXX_SOURCES := main.mm myobject.mm
include $(LEVEL)/Makefile.rules
CFLAGS_NO_DEBUG =
ifeq "$(OS)" "Darwin"
CFLAGS_NO_DEBUG += -arch $(ARCH)
endif
# myobject.o needs to be built without debug info
myobject.o: myobject.mm
$(CXX) $(CFLAGS_NO_DEBUG) -c -o $@ $<