Silence dozens of useless warnings from ranlib on macOS [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2023-01-22 11:58:36 +09:00
parent a22ed3e99d
commit 1e2523fad7
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
3 changed files with 12 additions and 1 deletions

View File

@ -433,6 +433,12 @@ AS_CASE(["$build_os"],
])
rm -fr conftest*
])
AS_CASE(["$build_os"],
[darwin*], [
AC_SUBST(X_WRAPPER_AR, "`cd -P "${tooldir}" && pwd`/darwin-ar $AR")
], [
AC_SUBST(X_WRAPPER_AR, "$AR")
])
AS_CASE(["$target_os"],
[wasi*], [
# Clang linker automatically uses wasm-opt with -O if it found.

View File

@ -230,7 +230,7 @@ RMALL = @RMALL@
LN_S = @LN_S@
TOUCH = touch
NM = @NM@
AR = @AR@
AR = @X_WRAPPER_AR@
ARFLAGS = @ARFLAGS@$(empty)
RANLIB = @RANLIB@
AS = @AS@

5
tool/darwin-ar Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
exec 2> >(exec grep -v \
-e 'has no symbols$' \
>&2)
exec "$@"