Skip to content

Commit

Permalink
Don't skip nonexistent source files
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Zalathar committed Aug 27, 2024
1 parent 5298b52 commit 264fa88
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions profiler_builtins/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,9 @@ fn main() {
let src_root = root.join("lib").join("profile");
assert!(src_root.exists(), "profiler runtime source directory not found: {src_root:?}");
println!("cargo::rerun-if-changed={}", src_root.display());
let mut n_sources_found = 0u32;
for src in profile_sources {
let path = src_root.join(src);
if path.exists() {
cfg.file(path);
n_sources_found += 1;
}
for file in profile_sources {
cfg.file(src_root.join(file));
}
assert!(n_sources_found > 0, "couldn't find any profiler runtime source files in {src_root:?}");

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

0 comments on commit 264fa88

Please sign in to comment.