Enabled link time optimization when building in release, improving speed by about 6%
This commit is contained in:
parent
553f700b79
commit
722550c5bc
3
Makefile
3
Makefile
@ -32,7 +32,8 @@ endif
|
|||||||
ifeq ($(CONF),debug)
|
ifeq ($(CONF),debug)
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
else ifeq ($(CONF), release)
|
else ifeq ($(CONF), release)
|
||||||
CFLAGS += -O3
|
CFLAGS += -O3 -flto
|
||||||
|
LDFLAGS += -flto
|
||||||
else
|
else
|
||||||
$(error Invalid value for CONF: $(CONF). Use "debug" or "release")
|
$(error Invalid value for CONF: $(CONF). Use "debug" or "release")
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user