Delete env var NO_ZIG_INSTALLED since Zig is now installed on Netlify

This commit is contained in:
Brian Carroll 2022-05-15 12:57:37 +01:00
parent 3e7928096d
commit 6a91e66192
No known key found for this signature in database
GPG key ID: 9CF4E3BF9C4722C7
3 changed files with 1 additions and 23 deletions

View file

@ -20,15 +20,6 @@ fn zig_executable() -> String {
fn main() {
println!("cargo:rerun-if-changed=build.rs");
// When we build on Netlify, zig is not installed (but also not used,
// since all we're doing is generating docs), so we can skip the steps
// that require having zig installed.
if env::var_os("NO_ZIG_INSTALLED").is_some() {
// We still need to do the other things before this point, because
// setting the env vars is needed for other parts of the build.
return;
}
// "." is relative to where "build.rs" is
// dunce can be removed once ziglang/zig#5109 is fixed
let build_script_dir_path = dunce::canonicalize(Path::new(".")).unwrap();