Skip to content

Commit 34af774

Browse files
committed
add back compile time optimizations
1 parent 744aacd commit 34af774

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ DYNAMIC_OPTIONS =
5959

6060
CC ?= cc
6161

62-
DWARF := $(shell $(CC) -Wall -Wextra -O0 -g -o /tmp/asflags_$${$$} src/flags.c; \
62+
DWARF := $(shell $(CC) -Wall -Wextra -O2 -o /tmp/asflags_$${$$} src/flags.c; \
6363
/tmp/asflags_$${$$}; rm /tmp/asflags_$${$$})
64-
CFLAGS += -std=gnu11 $(DWARF) -O0 -g -fno-common -fno-strict-aliasing \
64+
CFLAGS += -std=gnu11 $(DWARF) -O2 -fno-common -fno-strict-aliasing \
6565
-Wall -Wextra -Wconversion -Wsign-conversion -Wmissing-declarations \
6666
-Wno-implicit-fallthrough -Wno-unused-result -Wno-typedef-redefinition \
6767
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DMARCH_$(ARCH) \
6868
-DTOOL_VERSION=\"$(VERSION)\"
69-
CXXFLAGS := -std=c++14 $(DWARF) -O0 -g -fno-common -fno-strict-aliasing \
69+
CXXFLAGS := -std=c++14 $(DWARF) -O2 -fno-common -fno-strict-aliasing \
7070
-Wall -Wextra -Wconversion -Wsign-conversion -Wmissing-declarations \
7171
-Wno-implicit-fallthrough -Wno-unused-result \
7272
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -DMARCH_$(ARCH) \

0 commit comments

Comments
 (0)