Skip to content

Commit c1af7d5

Browse files
committed
Build: Debug builds use '-Wall -Wextra' and disable '-pipe' by default
1 parent f7c14b0 commit c1af7d5

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

ChangeLog

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
OpenVi 7.0.1 -> OpenVi 7.0.2 (Unreleased): Tue Jan 25 13:34:29 2022
1+
OpenVi 7.0.1 -> OpenVi 7.0.2 (Unreleased): Tue Jan 25 13:39:19 2022
2+
+ Build: Debugging builds now default to compiling with '-Wall -Wextra'
3+
+ Build: Only pass '-pipe' to the compiler for non-debugging builds
24
+ Build: Expand the formatting of the usage help text
35
+ Build: Change DEBUG_VI flag to sinply DEBUG
46
+ Build: For debugging builds, document the use of -T (Trace) in usage

GNUmakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ PREFIX ?= /usr/local
3434
###############################################################################
3535

3636
# Default CFLAGS
37-
CFLAGS += -pipe -std=gnu99 -I./cl -I./include -I. -MD
37+
CFLAGS += -std=gnu99 -I./cl -I./include -I. -MD
3838

3939
# CFLAGS and LDFLAGS
4040
ifdef DEBUG
4141
# Debugging
42-
CFLAGS += -DDEBUG -g3 -ggdb -Og
42+
CFLAGS += -Wall -Wextra -DDEBUG -g3 -ggdb -Og
4343
else
4444
# Optimizing
45-
CFLAGS += $(OPTLEVEL) -fomit-frame-pointer
45+
CFLAGS += -pipe $(OPTLEVEL) -fomit-frame-pointer
4646
endif
4747

4848
ifndef DEBUG

0 commit comments

Comments
 (0)