This is an automated email from the git hooks/post-receive script.
ildumi pushed a commit to branch development
in repository libtool.
The following commit(s) were added to refs/heads/development by this push:
new 6b306695 darwin.at: Avoid skipping macOS test
6b306695 is described below
commit 6b306695ea58c82320d6ee9c3f7ca2f503ab52af
Author: Ileana Dumitrescu <[email protected]>
AuthorDate: Tue Feb 25 22:10:12 2025 +0200
darwin.at: Avoid skipping macOS test
The test for 'darwin fat compile' is being skipped on 64-bit machines,
since the architecture option was specifying i386 (deprecated on macOS).
Reported: https://savannah.gnu.org/support/?111158
* tests/darwin.at: Update to use architecture arm64 instead of i386.
---
tests/darwin.at | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/tests/darwin.at b/tests/darwin.at
index 5148f1e2..9441871f 100644
--- a/tests/darwin.at
+++ b/tests/darwin.at
@@ -33,7 +33,7 @@ int main() { return 0;}
]])
$noskip && {
-$CC $CPPFLAGS $CFLAGS -arch x86_64 -arch i386 -o simple simple.c 2>&1 >
/dev/null || noskip=false
+$CC $CPPFLAGS $CFLAGS -arch x86_64 -arch arm64 -o simple simple.c 2>&1 >
/dev/null || noskip=false
rm -f simple
}
@@ -80,19 +80,21 @@ save_PATH=$PATH
PATH=`pwd`/bin:$PATH
export PATH
-AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch i386 foo.c],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch arm64 foo.c],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch i386 baz.c],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o foo.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch arm64 foo.c],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o libfoo.la $CPPFLAGS $CFLAGS
$LDFLAGS -arch x86_64 -arch i386 foo.lo baz.lo],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o baz.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch arm64 baz.c],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch i386 bar.c],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o libfoo.la $CPPFLAGS $CFLAGS
$LDFLAGS -arch x86_64 -arch arm64 foo.lo baz.lo],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o libbar.la $CPPFLAGS $CFLAGS
$LDFLAGS -arch x86_64 -arch i386 bar.lo libfoo.la -rpath
/nonexistent],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o bar.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch arm64 bar.c],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch i386 main.c],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o libbar.la $CPPFLAGS $CFLAGS
$LDFLAGS -arch x86_64 -arch arm64 bar.lo libfoo.la -rpath
/nonexistent],[0],[ignore],[ignore])
-AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS
$LDFLAGS -arch x86_64 -arch i386 main.lo libbar.la],[0],[ignore],[ignore])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CC $CC -c -o main.lo $CPPFLAGS $CFLAGS
-arch x86_64 -arch arm64 main.c],[0],[ignore],[ignore])
+
+AT_CHECK([$LIBTOOL --mode=link --tag=CC $CC -o main$EXEEXT $CPPFLAGS $CFLAGS
$LDFLAGS -arch x86_64 -arch arm64 main.lo libbar.la],[0],[ignore],[ignore])
PATH=$save_PATH
AT_CLEANUP