Skip to content

Commit

Permalink
Enable -O3 for liburing compilation
Browse files Browse the repository at this point in the history
I use this for testing all the time and have been for ages, let's
just make it the default.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Jun 29, 2022
1 parent 3022051 commit 7d1cce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ libdevdir ?= $(prefix)/lib
CPPFLAGS ?=
override CPPFLAGS += -D_GNU_SOURCE \
-Iinclude/ -include ../config-host.h
CFLAGS ?= -g -O2 -Wall -Wextra -fno-stack-protector
CFLAGS ?= -g -O3 -Wall -Wextra -fno-stack-protector
override CFLAGS += -Wno-unused-parameter -Wno-sign-compare -DLIBURING_INTERNAL
SO_CFLAGS=-fPIC $(CFLAGS)
L_CFLAGS=$(CFLAGS)
Expand Down
2 changes: 1 addition & 1 deletion test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ override CPPFLAGS += \
-I../src/include/ \
-include ../config-host.h

CFLAGS ?= -g -O2 -Wall -Wextra
CFLAGS ?= -g -O3 -Wall -Wextra
XCFLAGS = -Wno-unused-parameter -Wno-sign-compare

ifdef CONFIG_HAVE_STRINGOP_OVERFLOW
Expand Down

0 comments on commit 7d1cce2

Please sign in to comment.