1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-24 16:02:59 +01:00

rerun build if USE_SKEPTIC env var changed

This commit is contained in:
messense 2018-03-10 17:53:11 +08:00
parent 9a404a0c03
commit 598fb9190d
No known key found for this signature in database
GPG Key ID: BB41A8A2C716CCA9

View File

@ -6,6 +6,7 @@ use std::{env, fs};
#[cfg(unix)] #[cfg(unix)]
fn main() { fn main() {
println!("cargo:rerun-if-env-changed=USE_SKEPTIC");
let f = env::var("OUT_DIR").unwrap() + "/skeptic-tests.rs"; let f = env::var("OUT_DIR").unwrap() + "/skeptic-tests.rs";
if env::var("USE_SKEPTIC").is_ok() { if env::var("USE_SKEPTIC").is_ok() {
let _ = fs::remove_file(f); let _ = fs::remove_file(f);