Skip to content

Commit 8b42cd0

Browse files
committed
tidy fix
1 parent 14f9f2a commit 8b42cd0

File tree

2 files changed

+5
-4
lines changed
  • src/tools/run-make-support/src
  • tests/run-make/pgo-branch-weights

2 files changed

+5
-4
lines changed

src/tools/run-make-support/src/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ impl LlvmProfdata {
9999
pub fn command_output(&mut self) -> ::std::process::Output {
100100
self.cmd.output().expect("failed to get output of finished process")
101101
}
102-
}
102+
}

tests/run-make/pgo-branch-weights/rmake.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ use run_make_support::{llvm_profdata, rustc, rustdoc, tmp_dir};
2020

2121
fn main() {
2222
// For some very small programs GNU ld seems to not properly handle
23-
// instrumentation sections correctly. Neither Gold nor LLD have that problem.use run_make_support::{run, rustc, tmp_dir};
24-
let common_flags = if env::consts::OS == "linux" && env::var("TARGET").unwrap_or_default().contains("x86") {
23+
// instrumentation sections correctly. Neither Gold nor LLD have that
24+
// problem.use run_make_support::{run, rustc, tmp_dir};
25+
let common_flags = if env::consts::OS == "linux"
26+
&& env::var("TARGET").unwrap_or_default().contains("x86") {
2527
"-Clink-args=-fuse-ld=gold" // FIXME, Why was there a comma at the start?
2628
} else {
2729
""
@@ -71,4 +73,3 @@ fn main() {
7173

7274
let output = child.wait_with_output().unwrap();
7375
}
74-

0 commit comments

Comments
 (0)