]>
git.proxmox.com Git - rustc.git/blob - tests/run-make-fulldeps/extern-flag-pathless/Makefile
3 # Test mixing pathless --extern with paths.
6 $(RUSTC
) bar-static.rs
--crate-name
=bar
--crate-type
=rlib
7 $(RUSTC
) bar-dynamic.rs
--crate-name
=bar
--crate-type
=dylib
-C prefer-dynamic
8 # rlib preferred over dylib
9 $(RUSTC
) foo.rs
--extern bar
10 $(call RUN
,foo
) |
$(CGREP
) 'static'
11 $(RUSTC
) foo.rs
--extern bar
=$(TMPDIR
)/libbar.rlib
--extern bar
12 $(call RUN
,foo
) |
$(CGREP
) 'static'
13 # explicit --extern overrides pathless
14 $(RUSTC
) foo.rs
--extern bar
=$(call DYLIB
,bar
) --extern bar
15 $(call RUN
,foo
) |
$(CGREP
) 'dynamic'
16 # prefer-dynamic does what it says
17 $(RUSTC
) foo.rs
--extern bar
-C prefer-dynamic
18 $(call RUN
,foo
) |
$(CGREP
) 'dynamic'