]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libphobos: Fully enable Darwin/i386 support
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 1 Jul 2025 08:22:06 +0000 (10:22 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Tue, 1 Jul 2025 08:22:06 +0000 (10:22 +0200)
I recently noticed that libphobos isn't enable by default on 32-bit
Darwin with the target triples determined by config.guess.  E.g. on a
Darwin 15 system the target triple is something like
i386-apple-darwin15.6.0 while configure.tgt only matches
i?86-*-darwin1[2-7].

This patch also allows such minor and micro versions.

Tested on i386-apple-darwin15.6.0.

2025-06-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

libphobos:
* configure.tgt <i?86-*-darwin1[2-7]>: Also consider minor
versions supported.

libphobos/configure.tgt

index 76c09c4640dd5f75a0d01bf2c07ee972bb740666..fb671838d9df90f796e935731eccf5077ea7caeb 100644 (file)
@@ -64,7 +64,7 @@ case "${target}" in
   *-*-darwin9* | *-*-darwin1[01]*)
        LIBDRUNTIME_ONLY=yes
        ;;
-  x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7])
+  x86_64-*-darwin1[2-9]* | x86_64-*-darwin2* | i?86-*-darwin1[2-7]*)
        LIBPHOBOS_SUPPORTED=yes
        ;;
   x86_64-*-freebsd* | i?86-*-freebsd*)