diff --git a/aedi/target/main.py b/aedi/target/main.py index 0e4ff183..f119f636 100644 --- a/aedi/target/main.py +++ b/aedi/target/main.py @@ -488,7 +488,10 @@ class QuakespasmExpTarget(CMakeMainTarget): if state.xcode: opts['QUAKE_BUILD_ENGINE_PAK'] = 'OFF' - elif state.architecture() != machine(): - opts['MakeQuakePak_DIR'] = state.native_build_path + else: + opts['QUAKE_LTO'] = 'ON' + + if state.architecture() != machine(): + opts['MakeQuakePak_DIR'] = state.native_build_path super().configure(state)