Let the release build error on warnings
Add -Werror to the release configuration. Also add the release build as a dependency of the make validate rule. The idea is that builds should not pass validation if they have warnings but it shouldn't stop debug builds during development from compiling while work is in progress.
This commit is contained in:
parent
6f78d26ea1
commit
bf3fd83b64
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ asan:
|
|||||||
msan:
|
msan:
|
||||||
make -rRf make/msan.mk all
|
make -rRf make/msan.mk all
|
||||||
|
|
||||||
validate: asan msan debug
|
validate: asan msan debug release
|
||||||
./validate.sh
|
./validate.sh
|
||||||
|
|
||||||
analyze:
|
analyze:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
CFLAGS?=-Wall -Wextra -Wpedantic -O2 -std=c23 -flto -fomit-frame-pointer -DNDEBUG -D_POSIX_C_SOURCE=200809L
|
CFLAGS?=-Wall -Wextra -Wpedantic -Werror -O2 -std=c23 -flto -fomit-frame-pointer -DNDEBUG -D_POSIX_C_SOURCE=200809L
|
||||||
LDFLAGS?=-flto -s -Wl,--gc-sections
|
LDFLAGS?=-flto -s -Wl,--gc-sections
|
||||||
BUILD_DIR?=build/release/
|
BUILD_DIR?=build/release/
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user