10 lines
333 B
Rust
10 lines
333 B
Rust
// Windows only: give the coverage counters their section bounds (see win_sections.c).
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=win_sections.c");
|
|
if std::env::var("CARGO_CFG_TARGET_ENV").as_deref() == Ok("msvc") {
|
|
cc::Build::new()
|
|
.file("win_sections.c")
|
|
.compile("win_sections");
|
|
}
|
|
}
|