You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmake/tools/SetupZig.cmake
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,14 @@ optionx(ZIG_OBJECT_FORMAT "obj|bc" "Output file format for Zig object files" DEF
54
54
55
55
optionx(ZIG_LOCAL_CACHE_DIR FILEPATH"The path to local the zig cache directory" DEFAULT ${CACHE_PATH}/zig/local)
56
56
optionx(ZIG_GLOBAL_CACHE_DIR FILEPATH"The path to the global zig cache directory" DEFAULT ${CACHE_PATH}/zig/global)
57
-
optionx(ZIG_COMPILER_SAFE BOOL"Download a ReleaseSafe build of the Zig compiler. Only availble on macos aarch64." DEFAULT ${BUILDKITE})
57
+
58
+
if(CI ANDCMAKE_HOST_APPLE)
59
+
set(ZIG_COMPILER_SAFE_DEFAULT ON)
60
+
else()
61
+
set(ZIG_COMPILER_SAFE_DEFAULT OFF)
62
+
endif()
63
+
64
+
optionx(ZIG_COMPILER_SAFE BOOL"Download a ReleaseSafe build of the Zig compiler. Only availble on macos aarch64." DEFAULT ${ZIG_COMPILER_SAFE_DEFAULT})
0 commit comments