diff --git a/lldb/packages/Python/lldbsuite/test/lang/objcxx/class-name-clash/Makefile b/lldb/packages/Python/lldbsuite/test/lang/objcxx/class-name-clash/Makefile index 579600704dcd..57da077c8620 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/objcxx/class-name-clash/Makefile +++ b/lldb/packages/Python/lldbsuite/test/lang/objcxx/class-name-clash/Makefile @@ -1,7 +1,11 @@ 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) -c -o $@ $< + $(CXX) $(CFLAGS_NO_DEBUG) -c -o $@ $<