commit 9016dd1606669683625a50cbbe29ce8396002841
parent 429d8024bafabaababf8a78726c5a443758c5ef5
Author: Dominik Schmidt <das1993@hotmail.com>
Date: Tue, 3 Oct 2017 21:29:36 +0200
Compile debug code with -rdynamic for exception backtrace
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -20,7 +20,7 @@ $(TARGET): $(patsubst %.d, %.o, $(SRC))
$(DMD) $^ $(_DFLAGS) $(RELEASE) -of$@
strip -s $@
$(TARGET)-debug: $(patsubst %.d, %-debug.o, $(SRC))
- $(DMD) $^ $(_DFLAGS) $(DEBUG) -of$@
+ $(DMD) $^ $(_DFLAGS) $(DEBUG) -Xcc=-rdynamic -of$@
$(TARGET2)-debug: $(patsubst %.d, %-debug.o, $(SRC2))
$(DMD) $^ -I src $(DEBUG) -Xcc=-rdynamic -of$@