diff options
Diffstat (limited to 'build.rs')
-rw-r--r-- | build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,7 @@ extern crate bindgen; use std::env; use std::path::PathBuf; +#[cfg(not(feature = "hermetic"))] fn main() { println!("cargo:rustc-link-lib=squashfs"); println!("cargo:rerun-if-changed=wrapper.h"); @@ -13,3 +14,7 @@ fn main() { .expect("Failed to generate SquashFS bindings"); bindings.write_to_file(PathBuf::from(env::var("OUT_DIR").unwrap()).join("bindings.rs")).expect("Failed to write SquashFS bindings"); } + +// Don't generate bindings or linking directives if we're building hermetically +#[cfg(feature = "hermetic")] +fn main() { } |