Skip zig build on Netlify

This commit is contained in:
Richard Feldman 2021-06-05 22:31:37 -04:00
parent 84699d4f2f
commit 0e5619c422

View file

@ -8,6 +8,13 @@ use std::process::Command;
use std::str;
fn main() {
// 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() {
return;
}
let out_dir = env::var_os("OUT_DIR").unwrap();
let big_sur_path = "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib";