Skip to content

Commit 0a6fb5f

Browse files
committed
Make -g flag opt-in instead of opt-out
1 parent ea4a39b commit 0a6fb5f

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
## [Unreleased](unreleased)
4+
### Changed
5+
- Debug build opt in, instead of opt out. `export DEBUG=yes` before compilation and it will add a `-g` to the compilation process.
46

57

68
## [0.7.3] - 2021-10-08

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
SRC = $(wildcard c_src/*.c)
2020
HEADERS = $(wildcard c_src/*.h)
2121

22-
CFLAGS ?= -g -O2 -Wall
22+
CFLAGS ?= -O2 -Wall
23+
ifneq ($(DEBUG),)
24+
CFLAGS += -g
25+
endif
2326
CFLAGS += -I"$(ERTS_INCLUDE_DIR)"
2427
CFLAGS += -Ic_src
2528

0 commit comments

Comments
 (0)