mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-01 21:32:45 +02:00
Enabled link time optimization when building in release, improving speed by about 6%
This commit is contained in:
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
|
||||||
|
Reference in New Issue
Block a user