Add option to the Makefile to enable LTO
This commit is contained in:
parent
4ebfe064ff
commit
867af9f090
2 changed files with 5 additions and 0 deletions
4
Makefile
4
Makefile
|
@ -16,6 +16,10 @@ else
|
||||||
FILENAME_DEF = CSE2_debug.exe
|
FILENAME_DEF = CSE2_debug.exe
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(LTO), 1)
|
||||||
|
ALL_CXXFLAGS += -flto
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(JAPANESE), 1)
|
ifeq ($(JAPANESE), 1)
|
||||||
DATA_DIRECTORY = $(ASSETS_DIRECTORY)/data_jp
|
DATA_DIRECTORY = $(ASSETS_DIRECTORY)/data_jp
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,7 @@ Name | Function
|
||||||
--------|--------
|
--------|--------
|
||||||
`RELEASE=1` | Compile a release build (optimised, stripped, etc.)
|
`RELEASE=1` | Compile a release build (optimised, stripped, etc.)
|
||||||
`STATIC=1` | Produce a statically-linked executable (so you don't need to bundle DLL files)
|
`STATIC=1` | Produce a statically-linked executable (so you don't need to bundle DLL files)
|
||||||
|
`LTO=1` | Enable link-time optimisation
|
||||||
`JAPANESE=1` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)
|
`JAPANESE=1` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation)
|
||||||
`FIX_BUGS=1` | Fix various bugs in the game
|
`FIX_BUGS=1` | Fix various bugs in the game
|
||||||
`DEBUG_SAVE=1` | Re-enable the dummied-out 'Debug Save' option, and the ability to drag-and-drop save files onto the window
|
`DEBUG_SAVE=1` | Re-enable the dummied-out 'Debug Save' option, and the ability to drag-and-drop save files onto the window
|
||||||
|
|
Loading…
Add table
Reference in a new issue