Skip to content

hook up tracing to cg_cranelift#1550

Merged
bjorn3 merged 1 commit intorust-lang:masterfrom
jyn514:logging
Dec 19, 2024
Merged

hook up tracing to cg_cranelift#1550
bjorn3 merged 1 commit intorust-lang:masterfrom
jyn514:logging

Conversation

@jyn514
Copy link
Member

@jyn514 jyn514 commented Dec 18, 2024

this was easier than expected. here is an example of using RUSTC_LOG with a build of cranelift from rust-lang/rust:

$ RUSTC_LOG=rustc_codegen_cranelift cargo +stage1 b
   Compiling example v0.1.0 (/home/jyn/src/example)
 INFO rustc_codegen_cranelift codegen crate example
 INFO rustc_codegen_cranelift codegen crate example
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s

this was easier than expected. here is an example of using RUSTC_LOG with a build of cranelift from rust-lang/rust:
```
$ RUSTC_LOG=rustc_codegen_cranelift cargo +stage1 b
   Compiling example v0.1.0 (/home/jyn/src/example)
 INFO rustc_codegen_cranelift codegen crate example
 INFO rustc_codegen_cranelift codegen crate example
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
```
@bjorn3 bjorn3 merged commit da415e1 into rust-lang:master Dec 19, 2024
23 checks passed
@bjorn3
Copy link
Member

bjorn3 commented Dec 19, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants