]> git.proxmox.com Git - rustc.git/blame - src/test/run-make/native-link-modifier-verbatim-linker/Makefile
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / run-make / native-link-modifier-verbatim-linker / Makefile
CommitLineData
2b03887a
FG
1# ignore-cross-compile
2# ignore-macos
3
4include ../../run-make-fulldeps/tools.mk
5
6all:
7 # Verbatim allows specify precise name.
8 $(RUSTC) local_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/local_some_strange_name.ext
9 $(RUSTC) main.rs -Zunstable-options -l static:+verbatim=local_some_strange_name.ext
10
11 # With verbatim any other name cannot be used (local).
12 $(RUSTC) local_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/liblocal_native_dep.a
13 $(RUSTC) local_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/local_native_dep.a
14 $(RUSTC) local_native_dep.rs --crate-type=staticlib -o $(TMPDIR)/local_native_dep.lib
15 $(RUSTC) main.rs -Zunstable-options -l static:+verbatim=local_native_dep 2>&1 | $(CGREP) "local_native_dep"