Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hook up tracing to cg_cranelift #1550

Merged
merged 1 commit into from
Dec 19, 2024
Merged

hook up tracing to cg_cranelift #1550

merged 1 commit into from
Dec 19, 2024

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