mirror of
https://github.com/Dr-Noob/cpufetch.git
synced 2026-03-25 07:50:40 +01:00
[v0.98] Add compiler flags (in a different target, "strict") to detect programming errors, as suggested by #90 and #76
This commit is contained in:
3
Makefile
3
Makefile
@@ -50,6 +50,9 @@ debug: $(OUTPUT)
|
|||||||
static: CFLAGS += -static -O3
|
static: CFLAGS += -static -O3
|
||||||
static: $(OUTPUT)
|
static: $(OUTPUT)
|
||||||
|
|
||||||
|
strict: CFLAGS += -O3 -Werror -fsanitize=undefined -D_FORTIFY_SOURCE=2
|
||||||
|
strict: $(OUTPUT)
|
||||||
|
|
||||||
$(OUTPUT): Makefile $(SOURCE) $(HEADERS)
|
$(OUTPUT): Makefile $(SOURCE) $(HEADERS)
|
||||||
$(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
|
$(CC) $(CFLAGS) $(SANITY_FLAGS) $(SOURCE) -o $(OUTPUT)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user