Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rewrite lto-smoke, simple-rlib and mixing-deps run-make tests in rmake.rs format #125638

Merged
merged 3 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
rewrite lto-smoke to rmake
  • Loading branch information
Oneirical committed May 28, 2024
commit d9d013bec077600b8b0dc25e51191802d1e11cd9
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 @@ -145,7 +145,6 @@ run-make/lto-linkage-used-attr/Makefile
run-make/lto-no-link-whole-rlib/Makefile
run-make/lto-readonly-lib/Makefile
run-make/lto-smoke-c/Makefile
run-make/lto-smoke/Makefile
run-make/macos-deployment-target/Makefile
run-make/macos-fat-archive/Makefile
run-make/manual-crate-name/Makefile
Expand Down
31 changes: 0 additions & 31 deletions tests/run-make/lto-smoke/Makefile

This file was deleted.

13 changes: 13 additions & 0 deletions tests/run-make/lto-smoke/rmake.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// A simple smoke test to check that link time optimization
// (LTO) works as intended, with its various flags turned on.
// See https://github.com/rust-lang/rust/issues/10741
jieyouxu marked this conversation as resolved.
Show resolved Hide resolved

//@ ignore-cross-compile

fn main() {
let lto_flags = ["-Clto", "-Clto=yes", "-Clto=off", "-Clto=thin", "-Clto=fat"];
for flag in lto_flags {
rustc().input(lib.rs).run();
rustc().input(main.rs).arg(flag).run();
}
}