[Scummvm-git-logs] scummvm branch-2-2 -> 6f666e02f5aa944d521d80144a4058ed4515c77d

criezy criezy at scummvm.org
Wed Sep 30 21:52:24 UTC 2020


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:
6f666e02f5 BUILD: Use -Os optimization for mac PPC release builds


Commit: 6f666e02f5aa944d521d80144a4058ed4515c77d
    https://github.com/scummvm/scummvm/commit/6f666e02f5aa944d521d80144a4058ed4515c77d
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2020-09-30T22:51:54+01:00

Commit Message:
BUILD: Use -Os optimization for mac PPC release builds

Without this we now get a 'virtual memory exhausted' error when
running the executable.

Changed paths:
    configure


diff --git a/configure b/configure
index f189bc01fe..6bcb80f6b1 100755
--- a/configure
+++ b/configure
@@ -2716,10 +2716,13 @@ case $_host_os in
 		# which will allow for calls larger than 32MB. The linker
 		# will discard the calls if they are not needed, but we
 		# need to ensure the compiler emits them in the first place.
+		# Also the executable has grown to a size where using -Os is necessary to avoid a
+		# 'virtual memory exhausted' error when running the executable.
 		case $_host_cpu in
 		powerpc*)
 			append_var CFLAGS "-mlongcall"
 			append_var CXXFLAGS "-mlongcall"
+			_optimization_level=-Os
 			;;
 		esac
 




More information about the Scummvm-git-logs mailing list