-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c3774be
commit 885024d
Showing
4 changed files
with
113 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub fn something() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Checks that produced dylibs have a relative SONAME set, so they don't put "unmovable" full paths | ||
// into DT_NEEDED when used by a full path. | ||
|
||
//@ only-linux | ||
//@ ignore-cross-compile | ||
|
||
use run_make_support::regex::Regex; | ||
use run_make_support::{cmd, run_in_tmpdir, rustc}; | ||
|
||
fn main() { | ||
run_in_tmpdir(|| { | ||
rustc().crate_name("foo").crate_type("dylib").input("foo.rs").run(); | ||
cmd("readelf") | ||
.arg("-d") | ||
.arg("libfoo.so") | ||
.run() | ||
.assert_stdout_contains("Library soname: [libfoo.so]"); | ||
}); | ||
} |