Skip to content

Commit 9a8ace7

Browse files
committed
Check that the --kernel-manifest path exists
1 parent 38fd486 commit 9a8ace7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.rs

+6
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ mod binary {
213213
path,
214214
)
215215
}
216+
Ok(path) if !Path::new(&path).exists() => {
217+
format!(
218+
"compile_error!(\"The given `--kernel-manifest` path `{}` does not exist`\")",
219+
path,
220+
)
221+
}
216222
Ok(path) => {
217223
println!("cargo:rerun-if-changed={}", path);
218224

0 commit comments

Comments
 (0)