Skip to content

Commit b662829

Browse files
Add dSYM generation to exception druntime tests
1 parent fa92a47 commit b662829

File tree

1 file changed

+7
-1
lines changed
  • runtime/druntime/test/exceptions

1 file changed

+7
-1
lines changed

runtime/druntime/test/exceptions/Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ ifeq ($(OS),windows)
6767
endif
6868
include ../common.mak
6969

70+
# Generate dSYMs on macOS.
71+
$(OBJDIR)/%$(DOTEXE).dSYM: $(OBJDIR)/%$(DOTEXE)
72+
@[ "$(OS)" = "osx" ] && dsymutil -o $<.dSYM $<
73+
74+
$(TESTS:%=$(OBJDIR)/%.done): $(OBJDIR)/%.done: $(OBJDIR)/%$(DOTEXE) $(OBJDIR)/%$(DOTEXE).dSYM
75+
7076
$(ROOT)/line_trace.done: $(ROOT)/line_trace$(DOTEXE)
7177
@echo Testing line_trace
7278
$(TIMELIMIT)$(ROOT)/line_trace > $@
@@ -173,4 +179,4 @@ $(ROOT)/rt_trap_exceptions$(DOTEXE): extra_ldflags.d += $(line_trace_dflags)
173179
$(ROOT)/rt_trap_exceptions_drt$(DOTEXE): extra_dflags += -g
174180
$(ROOT)/refcounted$(DOTEXE): extra_dflags+=-dip1008
175181
$(ROOT)/cpp_demangle$(DOTEXE): extra_ldflags.d+=$(line_trace_dflags)
176-
$(ROOT)/cpp_demangle$(DOTEXE): extra_ldlibs.d+=-L-lstdc++
182+
$(ROOT)/cpp_demangle$(DOTEXE): extra_ldlibs.d+=-L-lstdc++

0 commit comments

Comments
 (0)