Skip to content

Commit e8f75fa

Browse files
committed
Filter out -g from custom link command to avoid generating a dsym
1 parent 69b97aa commit e8f75fa

File tree

1 file changed

+1
-1
lines changed
  • lldb/test/API/lang/swift/static_linking/macOS

1 file changed

+1
-1
lines changed

lldb/test/API/lang/swift/static_linking/macOS/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SWIFTFLAGS+=-sdk "$(SWIFTSDKROOT)"
1717

1818
$(EXE): objc_main.m A.o B.o
1919
$(CC) $(CFLAGS) -c -I. $< -fobjc-arc -o $(BUILDDIR)/objc_main.o
20-
$(SWIFTC) $(SWIFTFLAGS) -o $@ $(BUILDDIR)/objc_main.o $(BUILDDIR)/A.o $(BUILDDIR)/B.o -L$(BUILDDIR) -Xlinker -add_ast_path -Xlinker A.swiftmodule -Xlinker -add_ast_path -Xlinker B.swiftmodule
20+
$(SWIFTC) $(patsubst -g,,$(SWIFTFLAGS)) -o $@ $(BUILDDIR)/objc_main.o $(BUILDDIR)/A.o $(BUILDDIR)/B.o -L$(BUILDDIR) -Xlinker -add_ast_path -Xlinker A.swiftmodule -Xlinker -add_ast_path -Xlinker B.swiftmodule
2121
ifneq "$(CODESIGN)" ""
2222
$(CODESIGN) -s - "$@"
2323
endif

0 commit comments

Comments
 (0)