Enabled link time optimization when building in release, improving speed by about 6%

This commit is contained in:
Lior Halphon 2016-08-06 16:18:23 +03:00
parent 553f700b79
commit 722550c5bc
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ endif
ifeq ($(CONF),debug)
CFLAGS += -g
else ifeq ($(CONF), release)
CFLAGS += -O3
CFLAGS += -O3 -flto
LDFLAGS += -flto
else
$(error Invalid value for CONF: $(CONF). Use "debug" or "release")
endif