We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09489cc commit 3455e31Copy full SHA for 3455e31
tests/run-make/cross-lang-lto-clang/rmake.rs
@@ -28,12 +28,13 @@ static C_NEVER_INLINED_PATTERN: &'static str = "bl.*<c_never_inlined>";
28
static C_NEVER_INLINED_PATTERN: &'static str = "call.*c_never_inlined";
29
30
fn main() {
31
- test_lto("thin");
32
- test_lto("fat");
+ test_lto(false);
+ test_lto(true);
33
}
34
35
-fn test_lto(lto: &str) {
36
- let clang_lto = if lto == "fat" { "full" } else { lto };
+fn test_lto(fat_lto: bool) {
+ let lto = if fat_lto { "fat" } else { "thin" };
37
+ let clang_lto = if fat_lto { "full" } else { "thin" };
38
39
rustc()
40
.lto(lto)
0 commit comments