This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed
tests/run-make/manual-link Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ run-make/lto-linkage-used-attr/Makefile
7272run-make/lto-no-link-whole-rlib/Makefile
7373run-make/lto-smoke-c/Makefile
7474run-make/macos-deployment-target/Makefile
75- run-make/manual-link/Makefile
7675run-make/min-global-align/Makefile
7776run-make/missing-crate-dependency/Makefile
7877run-make/native-link-modifier-bundle/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ // A smoke test for the `-l` command line rustc flag, which manually links to the selected
2+ // library. Useful for native libraries, this is roughly equivalent to `#[link]` in Rust code.
3+ // If compilation succeeds, the flag successfully linked the native library.
4+ // See https://github.com/rust-lang/rust/pull/18470
5+
6+ //@ ignore-cross-compile
7+ // Reason: the compiled binary is executed
8+
9+ use run_make_support:: { build_native_static_lib, run, rustc} ;
10+
11+ fn main ( ) {
12+ build_native_static_lib ( "bar" ) ;
13+ rustc ( ) . input ( "foo.rs" ) . arg ( "-lstatic=bar" ) . run ( ) ;
14+ rustc ( ) . input ( "main.rs" ) . run ( ) ;
15+ run ( "main" ) ;
16+ }
You can’t perform that action at this time.
0 commit comments