While at it, annotate more functions that are potentially related to language parsing in buffers. Also, on macOS, in order to actually have callstack frames properly recorded by Tracy, you need to manually run `dsymutil` on the binary. Release Notes: - N/A
15 lines
462 B
Rust
15 lines
462 B
Rust
use std::env;
|
|
|
|
fn main() {
|
|
if env::var_os("ZTRACING").is_some() {
|
|
println!("cargo::rustc-cfg=ztracing");
|
|
}
|
|
if env::var_os("ZTRACING_WITH_MEMORY").is_some() {
|
|
println!("cargo::rustc-cfg=ztracing");
|
|
println!("cargo::rustc-cfg=ztracing_with_memory");
|
|
}
|
|
println!("cargo::rerun-if-changed=build.rs");
|
|
println!("cargo::rerun-if-env-changed=ZTRACING");
|
|
println!("cargo::rerun-if-env-changed=ZTRACING_WITH_MEMORY");
|
|
}
|