Skip to content

Commit 8693227

Browse files
committed
Skip broken symbol visibility test in MinGW
1 parent e2fdb84 commit 8693227

File tree

1 file changed

+5
-0
lines changed
  • src/test/run-make-fulldeps/symbol-visibility

1 file changed

+5
-0
lines changed

src/test/run-make-fulldeps/symbol-visibility/Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ all:
5454
# Check that a Rust dylib does not export generics if -Zshare-generics=no
5555
[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_generic_function_from_rlib)" -eq "0" ]
5656

57+
# FIXME(nbdd0121): This is broken in MinGW, see https://github.com/rust-lang/rust/pull/95604#issuecomment-1101564032
58+
ifndef IS_WINDOWS
5759
# Check that an executable does not export any dynamic symbols
5860
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_c_function_from_rlib)" -eq "0" ]
5961
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_rust_function_from_exe)" -eq "0" ]
62+
endif
6063

6164

6265
# Check the combined case, where we generate a cdylib and an rlib in the same
@@ -91,6 +94,8 @@ all:
9194
[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_rust_function_from_rlib)" -eq "1" ]
9295
[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_generic_function_from_rlib)" -eq "1" ]
9396

97+
ifndef IS_WINDOWS
9498
# Check that an executable does not export any dynamic symbols
9599
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_c_function_from_rlib)" -eq "0" ]
96100
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_rust_function_from_exe)" -eq "0" ]
101+
endif

0 commit comments

Comments
 (0)