Skip to content

Commit 66d7762

Browse files
committed
feat: verify FALLBACK_INCLUDE_PATH in build.rs
1 parent 98f1e64 commit 66d7762

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
use std::path::Path;
2+
3+
fn main() {
4+
if let Some(path) = option_env!("FALLBACK_INCLUDE_PATH") {
5+
let path = Path::new(path);
6+
assert!(
7+
path.is_absolute(),
8+
"Environment variable FALLBACK_INCLUDE_PATH must be absolute: {path:?}"
9+
);
10+
}
11+
}

0 commit comments

Comments
 (0)