mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Skip zig build on Netlify
This commit is contained in:
parent
84699d4f2f
commit
0e5619c422
1 changed files with 7 additions and 0 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue