]> git.lizzy.rs Git - rust.git/blob - tests/run-make-fulldeps/extern-fn-reachable/Makefile
Rollup merge of #107532 - compiler-errors:erase-regions-in-uninhabited, r=jackh726
[rust.git] / tests / run-make-fulldeps / extern-fn-reachable / Makefile
1 include ../tools.mk
2
3 # ignore-windows-msvc
4
5 NM=nm -D
6
7 ifeq ($(UNAME),Darwin)
8 NM=nm -gU
9 endif
10
11 ifdef IS_WINDOWS
12 NM=nm -g
13 endif
14
15 # This overrides the LD_LIBRARY_PATH for RUN
16 TARGET_RPATH_DIR:=$(TARGET_RPATH_DIR):$(TMPDIR)
17
18 all:
19         $(RUSTC) dylib.rs -o $(TMPDIR)/libdylib.so -C prefer-dynamic
20
21         [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun1)" -eq "1" ]
22         [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun2)" -eq "1" ]
23         [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun3)" -eq "1" ]
24         [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun4)" -eq "1" ]
25         [ "$$($(NM) $(TMPDIR)/libdylib.so | grep -v __imp_ | grep -c fun5)" -eq "1" ]