[Scummvm-git-logs] scummvm master -> 288fc13b95623979e609d2b25f31c01bed1bd598
lephilousophe
noreply at scummvm.org
Sat Mar 5 19:44:14 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:
288fc13b95 BUILD: Support Mold linker in configure (opt-in)
Commit: 288fc13b95623979e609d2b25f31c01bed1bd598
https://github.com/scummvm/scummvm/commit/288fc13b95623979e609d2b25f31c01bed1bd598
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2022-03-05T20:44:12+01:00
Commit Message:
BUILD: Support Mold linker in configure (opt-in)
This supposedly has the potential to be even faster than the LLD linker,
though for me the difference is minimal.
Changed paths:
configure
diff --git a/configure b/configure
index bf596be4397..72cd9da8bd1 100755
--- a/configure
+++ b/configure
@@ -198,6 +198,7 @@ _cloud=auto
_pandoc=no
_curl=yes
_lld=no
+_mold=no
_gold=yes
# Default vkeybd/eventrec options
_vkeybd=no
@@ -1158,6 +1159,8 @@ for ac_option in $@; do
--disable-cloud) _cloud=no ;;
--enable-lld) _lld=yes ;;
--disable-lld) _lld=no ;;
+ --enable-mold) _mold=yes ;;
+ --disable-mold) _mold=no ;;
--enable-gold) _gold=yes ;;
--disable-gold) _gold=no ;;
--enable-updates) _updates=yes ;;
@@ -2253,6 +2256,10 @@ if test "$_debug_build" != no; then
append_var LDFLAGS "-fuse-ld=lld"
append_var LDFLAGS "-Wl,--gdb-index"
echo_n -- " + LLD"
+ elif test "$_mold" = yes && cc_check_no_clean $debug_mode -gsplit-dwarf -fuse-ld=mold -Wl,--gdb-index; then
+ append_var LDFLAGS "-fuse-ld=mold"
+ append_var LDFLAGS "-Wl,--gdb-index"
+ echo_n -- " + Mold"
elif test "$_gold" = yes && cc_check_no_clean $debug_mode -gsplit-dwarf -fuse-ld=gold -Wl,--gdb-index; then
append_var LDFLAGS "-fuse-ld=gold"
append_var LDFLAGS "-Wl,--gdb-index"
@@ -2275,6 +2282,13 @@ if ! echo "$LDFLAGS" | grep -q -e -fuse-ld; then
fi
fi
+if ! echo "$LDFLAGS" | grep -q -e -fuse-ld; then
+ echo "Using Mold linker... $_mold"
+ if test "$_mold" = yes ; then
+ append_var LDFLAGS -fuse-ld=mold
+ fi
+fi
+
if test "$_release_build" = yes; then
# Add a define, which indicates we are doing
# an build for a release version.
More information about the Scummvm-git-logs
mailing list