Skip to content

Commit 37c7ec7

Browse files
committed
build.rs: Manually check kernel manifest path
1 parent c58d93b commit 37c7ec7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

hermit-sys/build.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ use std::process::Command;
1111
use walkdir::{DirEntry, WalkDir};
1212

1313
fn build_hermit(src_dir: &Path, target_dir_opt: Option<&Path>) {
14+
let manifest_path = src_dir.join("Cargo.toml");
1415
assert!(
15-
src_dir.exists(),
16-
"rusty_hermit source folder does not exist"
16+
manifest_path.exists(),
17+
"kernel manifest path `{}` does not exist",
18+
manifest_path.display()
1719
);
1820
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
1921
let profile = env::var("PROFILE").expect("PROFILE was not set");

0 commit comments

Comments
 (0)