summaryrefslogtreecommitdiffstats
path: root/ffi/tests/c-tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ffi/tests/c-tests.rs')
-rw-r--r--ffi/tests/c-tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ffi/tests/c-tests.rs b/ffi/tests/c-tests.rs
index 7cbec614..ff613bad 100644
--- a/ffi/tests/c-tests.rs
+++ b/ffi/tests/c-tests.rs
@@ -228,7 +228,8 @@ fn build(include_dirs: &[PathBuf], ldpath: &Path, target_dir: &Path,
include_dirs.iter().map(|dir| format!("-I{:?}", dir))
.collect::<Vec<String>>().join(" ");
let st = Command::new("make")
- .env("CFLAGS", &format!("-O0 -ggdb {}", includes))
+ .env("CFLAGS", &format!("-Wall -O0 -ggdb {} {}", includes,
+ env::var("CFLAGS").unwrap_or("".into())))
.env("LDFLAGS", &format!("-L{:?} -lsequoia_ffi", ldpath))
.arg("-C").arg(&target_dir)
.arg("--quiet")