File tree 1 file changed +5
-0
lines changed
src/test/run-make-fulldeps/symbol-visibility
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 54
54
# Check that a Rust dylib does not export generics if -Zshare-generics=no
55
55
[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_generic_function_from_rlib)" -eq "0" ]
56
56
57
+ # FIXME(nbdd0121): This is broken in MinGW, see https://github.com/rust-lang/rust/pull/95604#issuecomment-1101564032
58
+ ifndef IS_WINDOWS
57
59
# Check that an executable does not export any dynamic symbols
58
60
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_c_function_from_rlib)" -eq "0" ]
59
61
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_rust_function_from_exe)" -eq "0" ]
62
+ endif
60
63
61
64
62
65
# Check the combined case, where we generate a cdylib and an rlib in the same
91
94
[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_rust_function_from_rlib)" -eq "1" ]
92
95
[ "$$($(NM) $(TMPDIR)/$(RDYLIB_NAME) | grep -v __imp_ | grep -c public_generic_function_from_rlib)" -eq "1" ]
93
96
97
+ ifndef IS_WINDOWS
94
98
# Check that an executable does not export any dynamic symbols
95
99
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_c_function_from_rlib)" -eq "0" ]
96
100
[ "$$($(NM) $(TMPDIR)/$(EXE_NAME) | grep -v __imp_ | grep -c public_rust_function_from_exe)" -eq "0" ]
101
+ endif
You can’t perform that action at this time.
0 commit comments