Skip to content

Commit 8970095

Browse files
committed
Preserves *.dwo files on debug builds
It looks like we need those *.dwo files to debug Brain when built with clang. Signed-off-by: Rafael Campos Nunes <rafaelnunes@engineer.com>
1 parent 7d5a789 commit 8970095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ CLANG=clang
2121
LLVM_CONFIG=llvm-config
2222

2323
CFLAGS=-O3 -Wall -Wno-unknown-warning-option -std=c++1y
24-
CFLAGS-DEBUG=-O0 -Wall
24+
CFLAGS-DEBUG=-O0 -Wno-unknown-warning-option -Wall
2525
BIN=./bin
2626

2727
SUDO=sudo
@@ -56,7 +56,7 @@ build-3.9: all
5656

5757
debug: $(SRCS)
5858
$(MKBIN) && $(CC) -g $(CFLAGS-DEBUG) $(SRCS) $(CONFIG) -o $(BIN)/brain_debug
59-
rm *.dwo
59+
mv *.dwo bin/
6060

6161
debug-gcc: $(SRCS)
6262
$(MKBIN) && $(GCC) -g $(CFLAGS-DEBUG) $(SRCS) $(CONFIG) -o $(BIN)/brain_debug

0 commit comments

Comments
 (0)