Skip to content

Commit

Permalink
Add rerun-if-changed annotations for wast testsuites
Browse files Browse the repository at this point in the history
  • Loading branch information
fitzgen committed Feb 25, 2020
1 parent 1468fb5 commit f2d9448
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ fn test_directory(
strategy: &str,
) -> anyhow::Result<usize> {
let path = path.as_ref();
println!("cargo:rerun-if-changed={}", path.display());

let mut dir_entries: Vec<_> = path
.read_dir()
.context(format!("failed to read {:?}", path))?
Expand Down Expand Up @@ -148,6 +150,8 @@ fn write_testsuite_tests(
strategy: &str,
) -> anyhow::Result<()> {
let path = path.as_ref();
println!("cargo:rerun-if-changed={}", path.display());

let testname = extract_name(path);

writeln!(out, "#[test]")?;
Expand Down

0 comments on commit f2d9448

Please sign in to comment.