1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-10-05 09:42:08 +00: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)]
fn main() {
println!("cargo:rerun-if-env-changed=USE_SKEPTIC");
let f = env::var("OUT_DIR").unwrap() + "/skeptic-tests.rs";
if env::var("USE_SKEPTIC").is_ok() {
let _ = fs::remove_file(f);