From 0e5619c42285e3032c9b718444824fdecd6c0325 Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 5 Jun 2021 22:31:37 -0400 Subject: [PATCH] Skip zig build on Netlify --- compiler/builtins/build.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/builtins/build.rs b/compiler/builtins/build.rs index c621196cb9..e0d493457b 100644 --- a/compiler/builtins/build.rs +++ b/compiler/builtins/build.rs @@ -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";