Skip to content

Commit

Permalink
Migrate run-make/symlinked-rlib to rmake.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Jun 5, 2024
1 parent a330e49 commit 58c1dfe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/tools/tidy/src/allowed_run_make_makefiles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,6 @@ run-make/symbol-visibility/Makefile
run-make/symbols-include-type-name/Makefile
run-make/symlinked-extern/Makefile
run-make/symlinked-libraries/Makefile
run-make/symlinked-rlib/Makefile
run-make/sysroot-crates-are-unstable/Makefile
run-make/target-cpu-native/Makefile
run-make/target-specs/Makefile
Expand Down
10 changes: 0 additions & 10 deletions tests/run-make/symlinked-rlib/Makefile

This file was deleted.

15 changes: 15 additions & 0 deletions tests/run-make/symlinked-rlib/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//@ ignore-cross-compile
// `ln` is actually `cp` on msys.
//@ ignore-windows

use run_make_support::{rustc, tmp_dir};
use std::process::Command;

fn main() {
let out = tmp_dir().join("foo.xxx");

rustc().input("foo.rs").crate_type("rlib").output(&out).run();
let output = Command::new("ln").arg("-nsf").arg(out).arg(tmp_dir().join("libfoo.rlib")).output().unwrap();
assert!(output.status.success());
rustc().input("bar.rs").library_search_path(tmp_dir()).run();
}

0 comments on commit 58c1dfe

Please sign in to comment.