]> git.lizzy.rs Git - rust.git/blob - src/test/run-make/native-link-modifier-verbatim-linker/Makefile
Rollup merge of #103766 - lukas-code:error-in-core, r=Dylan-DPC
[rust.git] / src / test / run-make / native-link-modifier-verbatim-linker / Makefile
1 # ignore-cross-compile
2 # ignore-macos
3
4 include ../../run-make-fulldeps/tools.mk
5
6 all:
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"