From 2c831a62adb1b04084057cad4139cc35edea4a6d Mon Sep 17 00:00:00 2001 From: Clownacy Date: Sat, 14 Mar 2020 19:45:30 +0000 Subject: [PATCH] Add NATIVE_OPTIMIZATIONS to the Makefile Must have forgot to add this option here when adding it to the portable branch --- Makefile | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index b1fbe682..dd4572ab 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,10 @@ ifeq ($(LTO), 1) ALL_CXXFLAGS += -flto endif +ifeq ($(NATIVE_OPTIMIZATIONS), 1) + ALL_CXXFLAGS += -march=native +endif + ifeq ($(JAPANESE), 1) BUILD_DIRECTORY = game_japanese diff --git a/README.md b/README.md index 7d428257..f7328d36 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,7 @@ Name | Function `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) `LTO=1` | Enable link-time optimisation +`NATIVE_OPTIMIZATIONS=1` | Enable processor-specific optimisations (executable might not work on other architectures) `JAPANESE=1` | Enable the Japanese-language build (instead of the unofficial Aeon Genesis English translation) `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