[pushed] libgcc, Darwin: Don't build legacy libgcc_s.1 on macOS 14 [PR116809]

Message ID 20240927122025.64398-1-iain@sandoe.co.uk
State Committed
Commit dd5b823ce238161156e7a4b6267bd30d7dde7c6b
Headers
Series [pushed] libgcc, Darwin: Don't build legacy libgcc_s.1 on macOS 14 [PR116809] |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Iain Sandoe Sept. 27, 2024, 12:20 p.m. UTC
  From: Mark Mentovai <mark@mentovai.com>

I pushed this for Mark, after testing locally on x86_64-darwin21, 23,
thanks,
Iain

--- 8< ---

d9cafa0c4f0a stopped building libgcc_s.1 on macOS >= 15, in part because
that is required to bootstrap the compiler using the macOS 15 SDK. The
macOS 15 SDK ships in Xcode 16, which also runs on macOS 14. libgcc_s.1
can no longer be built on macOS 14 using Xcode 16 by the same logic that
the previous change disabled it for macOS 15.

	PR target/116809

libgcc/ChangeLog:

	* config.host: Don't build legacy libgcc_s.1 on macOS 14.

Signed-off-by: Mark Mentovai <mark@mentovai.com>
---
 libgcc/config.host | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/libgcc/config.host b/libgcc/config.host
index 00bd6384c0f..fa001c5e900 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -239,7 +239,7 @@  case ${host} in
   esac
   tmake_file="$tmake_file t-slibgcc-darwin"
   case ${host} in
-    x86_64-*-darwin2[0-3]*)
+    x86_64-*-darwin2[0-2]*)
       tmake_file="t-darwin-min-11 t-darwin-libgccs1 $tmake_file"
       ;;
     *-*-darwin2*)