Skip to content

Commit c31dcf6

Browse files
ishitatsuyukiColecf
authored andcommitted
Use -O2 optimization level by default
I noticed some weird compiler behavior when looking at strutil assembly, and sure enough the compiler optimization level was stuck at -O1. Kati is not particularly slow to compile, so I propose defaulting to -O2. strutil_bench seems to be 16% faster with -O2.
1 parent ec1814e commit c31dcf6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile.ckati

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ KATI_CXX_TEST_EXES := $(patsubst $(KATI_INTERMEDIATES_PATH)/%.o,$(KATI_BIN_PATH)
7070
$(KATI_CXX_TEST_OBJS))
7171

7272
KATI_CXXFLAGS := -g -W -Wall -MMD -MP
73-
KATI_CXXFLAGS += -O -DNOLOG
73+
KATI_CXXFLAGS += -O2 -DNOLOG
7474
KATI_CXXFLAGS += -march=native
7575
#KATI_CXXFLAGS += -pg
7676

0 commit comments

Comments
 (0)