mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 07:53:00 +01:00
rerun build if USE_SKEPTIC env var changed
This commit is contained in:
parent
9a404a0c03
commit
598fb9190d
1
build.rs
1
build.rs
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user