From 46b82da1232eda0e78b7d8053a65d8de8580b774 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 7 Jan 2020 13:45:57 +0100 Subject: openpgp-ffi, ffi: Always rebuild C doctests. --- ffi/tests/c-tests.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ffi') diff --git a/ffi/tests/c-tests.rs b/ffi/tests/c-tests.rs index 96740716..934bd9be 100644 --- a/ffi/tests/c-tests.rs +++ b/ffi/tests/c-tests.rs @@ -232,6 +232,11 @@ fn build(include_dirs: &[PathBuf], ldpath: &Path, target_dir: &Path, .env("LDFLAGS", &format!("-L{:?} -lsequoia_ffi", ldpath)) .arg("-C").arg(&target_dir) .arg("--quiet") + // XXX: We don't track the header files as dependencies for + // the build. The quick fix is to always rebuild the test, + // the more involved fix is to compute the maximum mtime of + // the rust source and all the header files. + .arg("--always-make") .arg(target.file_name().unwrap()) .status() .context("Compiling the C-tests requires Make \ -- cgit v1.2.3