Commit 0a3b6b2f authored by Sven Liefgen's avatar Sven Liefgen
Browse files

Add check for existing generated file

parent e58df2b8
...@@ -77,9 +77,11 @@ fn main() { ...@@ -77,9 +77,11 @@ fn main() {
), ),
) )
.unwrap(); .unwrap();
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-changed={}", xlap); println!("cargo:rerun-if-changed={}", xlap);
println!("cargo:rerun-if-env-changed=XLAP"); } else if !dest_path.exists() {
panic!("Specify the absolute path to your `xlap.yml` using the `XLAP` environment variable on the first build");
} }
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rerun-if-changed=src/lib.rs");
println!("cargo:rerun-if-env-changed=XLAP");
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment