Silence dozens of useless warnings from nm on macOS

This commit is contained in:
Nobuyoshi Nakada 2023-01-31 19:42:01 +09:00
parent 337189598a
commit be81495c16
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
4 changed files with 3 additions and 9 deletions

View File

@ -433,12 +433,6 @@ 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

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

View File

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

View File

@ -65,7 +65,7 @@ endif
# we rely.
ifneq ($(findstring darwin,$(target_os)),)
$(YJIT_LIB_SYMBOLS): $(YJIT_LIBS)
$(Q) $(NM) --no-llvm-bc --defined-only --extern-only $(YJIT_LIBS) | \
$(Q) $(tooldir)/darwin-ar $(NM) --no-llvm-bc --defined-only --extern-only $(YJIT_LIBS) | \
sed -n -e 's/.* //' -e '/^$(SYMBOL_PREFIX)rb_/p' \
-e '/^$(SYMBOL_PREFIX)rust_eh_personality/p' \
> $@