ref: 94b57818a450b6799ee2848098539738214bc3bb
parent: 33fa5ff1b58612b8937b148e399f8e7c8041dc7c
author: cancel <cancel@cancel.fm>
date: Sun Nov 25 05:08:15 EST 2018
Change to use -Og in debug builds instead of -O0 Better debugging/warning
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
basic_flags := -std=c99 -pipe -Wall -Wpedantic -Wextra -Werror=implicit-function-declaration -D_XOPEN_SOURCE_EXTENDED=1
-debug_flags := -DDEBUG -O0 -ggdb -feliminate-unused-debug-symbols
+debug_flags := -DDEBUG -Og -ggdb -feliminate-unused-debug-symbols
sanitize_flags := -fsanitize=address -fsanitize=undefined
# note: -fsanitize=leak not available on at least Mac 10.12
release_flags := -DNDEBUG -O2 -s -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fpie -Wl,-pie