Skip to content

Commit 264fa88

Browse files
committed
Don't skip nonexistent source files
This behaviour was introduced during the upgrade to LLVM 11. Now that the list of source files has been cleaned up, we can reasonably expect _all_ of the listed source files to be present.
1 parent 5298b52 commit 264fa88

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Diff for: profiler_builtins/build.rs

+2-8
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,9 @@ fn main() {
8585
let src_root = root.join("lib").join("profile");
8686
assert!(src_root.exists(), "profiler runtime source directory not found: {src_root:?}");
8787
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-
}
88+
for file in profile_sources {
89+
cfg.file(src_root.join(file));
9590
}
96-
assert!(n_sources_found > 0, "couldn't find any profiler runtime source files in {src_root:?}");
9791

9892
let include = root.join("include");
9993
println!("cargo::rerun-if-changed={}", include.display());

0 commit comments

Comments
 (0)