Silence dozens of useless warnings from nm
on macOS
This commit is contained in:
parent
337189598a
commit
be81495c16
@ -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.
|
||||
|
@ -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@
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
exec 2> >(exec grep -v \
|
||||
-e 'has no symbols$' \
|
||||
-e ' no symbols$' \
|
||||
>&2)
|
||||
exec "$@"
|
||||
|
@ -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' \
|
||||
> $@
|
||||
|
Loading…
x
Reference in New Issue
Block a user