Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
X-Lap
Commits
0a3b6b2f
Commit
0a3b6b2f
authored
Feb 08, 2021
by
Sven Liefgen
Browse files
Add check for existing generated file
parent
e58df2b8
Changes
1
Show whitespace changes
Inline
Side-by-side
build.rs
View file @
0a3b6b2f
...
...
@@ -77,9 +77,11 @@ fn main() {
),
)
.unwrap
();
println!
(
"cargo:rerun-if-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-changed={}"
,
xlap
);
println!
(
"cargo:rerun-if-env-changed=XLAP"
);
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment