We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 961480c commit 89366abCopy full SHA for 89366ab
library/profiler_builtins/build.rs
@@ -85,15 +85,9 @@ fn main() {
85
let src_root = root.join("lib").join("profile");
86
assert!(src_root.exists(), "profiler runtime source directory not found: {src_root:?}");
87
println!("cargo::rerun-if-changed={}", src_root.display());
88
- let mut n_sources_found = 0u32;
89
- for src in profile_sources {
90
- let path = src_root.join(src);
91
- if path.exists() {
92
- cfg.file(path);
93
- n_sources_found += 1;
94
- }
+ for file in profile_sources {
+ cfg.file(src_root.join(file));
95
}
96
- assert!(n_sources_found > 0, "couldn't find any profiler runtime source files in {src_root:?}");
97
98
let include = root.join("include");
99
println!("cargo::rerun-if-changed={}", include.display());
0 commit comments