Commit fd3da3348c

Andrew Kelley <andrew@ziglang.org>
2020-10-29 00:31:59
ci: macos: rebuild zig1.o with stage1
see #6830 for details.
1 parent 7bc9531
Changed files (1)
ci
ci/azure/macos_script
@@ -46,6 +46,13 @@ unset CXX
 unset ZIG_LIBC
 
 make $JOBS install
+
+# Here we rebuild zig but this time using the Zig binary we just now produced to
+# build zig1.o rather than relying on the one built with stage0. See
+# https://github.com/ziglang/zig/issues/6830 for more details.
+cmake .. -DZIG_EXECUTABLE="$(pwd)/release/bin/zig"
+make $JOBS install
+
 release/bin/zig build test
 
 if [ "${BUILD_REASON}" != "PullRequest" ]; then