public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7465] configure: enable plugin support for ld.mold
@ 2022-03-03 14:48 Martin Liska
  0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-03-03 14:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:e81cbab6195a4217703824d7e5733f118afab3bb

commit r12-7465-ge81cbab6195a4217703824d7e5733f118afab3bb
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Mar 3 15:47:19 2022 +0100

    configure: enable plugin support for ld.mold
    
    gcc/ChangeLog:
    
            * configure.ac: Now ld.mold support LTO plugin API, use it.
            * configure: Regenerate.

Diff:
---
 gcc/configure    | 2 ++
 gcc/configure.ac | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/gcc/configure b/gcc/configure
index 22eb3451e3d..6f5fc20fcf3 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -26037,6 +26037,8 @@ if test -f liblto_plugin.la; then
     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
       gcc_cv_lto_plugin=1
+    elif test "$ld_is_mold" = yes; then
+      gcc_cv_lto_plugin=1
     fi
   fi
 
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 20da90901f8..3d85d33bc80 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -4278,6 +4278,8 @@ changequote([,])dnl
     # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.
     elif test "$ld_is_gold" = yes -a "$ld_vers_major" -eq 2 -a "$ld_vers_minor" -eq 20; then
       gcc_cv_lto_plugin=1
+    elif test "$ld_is_mold" = yes; then
+      gcc_cv_lto_plugin=1
     fi
   fi


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-03 14:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-03 14:48 [gcc r12-7465] configure: enable plugin support for ld.mold Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).