Skip to content

Commit d9d013b

Browse files
committed
rewrite lto-smoke to rmake
1 parent 84b40fc commit d9d013b

File tree

3 files changed

+13
-32
lines changed

3 files changed

+13
-32
lines changed

src/tools/tidy/src/allowed_run_make_makefiles.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ run-make/lto-linkage-used-attr/Makefile
145145
run-make/lto-no-link-whole-rlib/Makefile
146146
run-make/lto-readonly-lib/Makefile
147147
run-make/lto-smoke-c/Makefile
148-
run-make/lto-smoke/Makefile
149148
run-make/macos-deployment-target/Makefile
150149
run-make/macos-fat-archive/Makefile
151150
run-make/manual-crate-name/Makefile

tests/run-make/lto-smoke/Makefile

Lines changed: 0 additions & 31 deletions
This file was deleted.

tests/run-make/lto-smoke/rmake.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// A simple smoke test to check that link time optimization
2+
// (LTO) works as intended, with its various flags turned on.
3+
// See https://github.com/rust-lang/rust/issues/10741
4+
5+
//@ ignore-cross-compile
6+
7+
fn main() {
8+
let lto_flags = ["-Clto", "-Clto=yes", "-Clto=off", "-Clto=thin", "-Clto=fat"];
9+
for flag in lto_flags {
10+
rustc().input(lib.rs).run();
11+
rustc().input(main.rs).arg(flag).run();
12+
}
13+
}

0 commit comments

Comments
 (0)