[Scummvm-git-logs] scummvm master -> 63b709be9939bc7430809006d6ec780da5ca347f
lephilousophe
noreply at scummvm.org
Sat Sep 10 16:26:35 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
63b709be99 AMIGAOS: Use LTO, -O3 and dead code elimination by default (#4238)
Commit: 63b709be9939bc7430809006d6ec780da5ca347f
https://github.com/scummvm/scummvm/commit/63b709be9939bc7430809006d6ec780da5ca347f
Author: Hubert Maier (raziel- at users.noreply.github.com)
Date: 2022-09-10T18:26:31+02:00
Commit Message:
AMIGAOS: Use LTO, -O3 and dead code elimination by default (#4238)
Changed paths:
configure
diff --git a/configure b/configure
index 1f0da809ce3..e074761454c 100755
--- a/configure
+++ b/configure
@@ -2579,9 +2579,9 @@ case $_host_os in
_port_mk="backends/platform/sdl/amigaos/amigaos.mk"
add_line_to_config_mk 'AMIGAOS = 1'
append_var CXXFLAGS "-mlongcall"
- # Enable optimizations for non-debug builds
+ # Enable full optimizations for non-debug builds
if test "$_debug_build" = no; then
- _optimization_level=-O2
+ _optimization_level=-O3
else
_optimization_level=-O0
append_var CXXFLAGS "-fno-omit-frame-pointer"
@@ -6200,6 +6200,15 @@ case $_host_os in
append_var LDFLAGS "-Wl,--no-gc-sections"
fi
;;
+ amigaos*)
+ # In release mode use LTO to improve performance
+ # and dead code elimination to reduce binary size
+ if test "$_release_build" = yes; then
+ append_var CXXFLAGS "-flto"
+ append_var CXXFLAGS "-ffunction-sections -fdata-sections"
+ append_var PLUGIN_LDFLAGS "-flto=jobserver"
+ fi
+ ;;
android)
# Force treating unqualified char variables as signed by default.
# NDK compiler for ARM will treat them as unsigned otherwise, which creates bugs in the code.
More information about the Scummvm-git-logs
mailing list