Skip to content

Commit 3455e31

Browse files
committed
Improve cross-lang-lto-clang test
1 parent 09489cc commit 3455e31

File tree

1 file changed

+5
-4
lines changed
  • tests/run-make/cross-lang-lto-clang

1 file changed

+5
-4
lines changed

tests/run-make/cross-lang-lto-clang/rmake.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ static C_NEVER_INLINED_PATTERN: &'static str = "bl.*<c_never_inlined>";
2828
static C_NEVER_INLINED_PATTERN: &'static str = "call.*c_never_inlined";
2929

3030
fn main() {
31-
test_lto("thin");
32-
test_lto("fat");
31+
test_lto(false);
32+
test_lto(true);
3333
}
3434

35-
fn test_lto(lto: &str) {
36-
let clang_lto = if lto == "fat" { "full" } else { lto };
35+
fn test_lto(fat_lto: bool) {
36+
let lto = if fat_lto { "fat" } else { "thin" };
37+
let clang_lto = if fat_lto { "full" } else { "thin" };
3738

3839
rustc()
3940
.lto(lto)

0 commit comments

Comments
 (0)