Skip to content

Commit 05e94e8

Browse files
committed
Add #[tracing::instrument] to the LLVM build step
1 parent 996cd08 commit 05e94e8

File tree

1 file changed

+9
-0
lines changed
  • src/bootstrap/src/core/build_steps

1 file changed

+9
-0
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,15 @@ impl Step for Llvm {
263263
}
264264

265265
/// Compile LLVM for `target`.
266+
#[cfg_attr(
267+
feature = "tracing",
268+
instrument(
269+
level = "debug",
270+
name = "Llvm::run",
271+
skip_all,
272+
fields(target = ?self.target),
273+
),
274+
)]
266275
fn run(self, builder: &Builder<'_>) -> LlvmResult {
267276
let target = self.target;
268277
let target_native = if self.target.starts_with("riscv") {

0 commit comments

Comments
 (0)