From 477798b37ec034bacb4502b481597317d3950481 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 14 Oct 2020 17:59:29 -0700 Subject: [PATCH] ci: macos: unset ZIG_LIBC before testing otherwise cross compiling gets incorrectly affected by the environment variable. --- ci/azure/macos_script | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/azure/macos_script b/ci/azure/macos_script index e5b0836e7..84762b1e8 100755 --- a/ci/azure/macos_script +++ b/ci/azure/macos_script @@ -40,10 +40,11 @@ cmake .. \ -DZIG_EXECUTABLE="$ZIG" \ -DZIG_STATIC=ON -# TODO unsetting this before `make install` is a workaround for Zig crashing -# with "unable to exec C compiler". +# Now cmake will use zig as the C/C++ compiler. We reset the environment variables +# so that installation and testing do not get affected by them. unset CC unset CXX +unset ZIG_LIBC make $JOBS install release/bin/zig build test