Skip to content

Commit 0750e0d

Browse files
committed
Filter out -g from custom link command to avoid generating a dsym
rdar://120814652
1 parent e38a71b commit 0750e0d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lldb/source/Breakpoint/BreakpointResolverFileLine.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ Searcher::CallbackReturn BreakpointResolverFileLine::SearchCallback(
294294
for (size_t i = 0; i < num_comp_units; i++) {
295295
CompUnitSP cu_sp(context.module_sp->GetCompileUnitAtIndex(i));
296296
if (cu_sp) {
297+
StreamString s;
298+
cu_sp->GetDescription(&s, eDescriptionLevelBrief);
299+
llvm::errs()<<s.GetString()<<"\n";
297300
if (filter.CompUnitPasses(*cu_sp))
298301
cu_sp->ResolveSymbolContext(m_location_spec, eSymbolContextEverything,
299302
sc_list);

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)