mirror of
https://github.com/actix/actix-web.git
synced 2025-03-28 05:45:27 +00:00
rerun build if USE_SKEPTIC env var changed
This commit is contained in:
parent
9a404a0c03
commit
598fb9190d
1 changed files with 1 additions and 0 deletions
1
build.rs
1
build.rs
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue