authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-14 17:59:29-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-10-14 17:59:29-07:00
log477798b37ec034bacb4502b481597317d3950481
tree18c5823f874596a719c8196e5243928056646dce
parent540364e6c18e7acb744ba92b6d38dc1275fbcfa5

ci: macos: unset ZIG_LIBC before testing

otherwise cross compiling gets incorrectly affected by the environment variable.

1 files changed, 3 insertions(+), 2 deletions(-)

ci/azure/macos_script+3-2
...@@ -40,10 +40,11 @@ cmake .. \...@@ -40,10 +40,11 @@ cmake .. \
40 -DZIG_EXECUTABLE="$ZIG" \40 -DZIG_EXECUTABLE="$ZIG" \
41 -DZIG_STATIC=ON41 -DZIG_STATIC=ON
4242
43# TODO unsetting this before `make install` is a workaround for Zig crashing43# Now cmake will use zig as the C/C++ compiler. We reset the environment variables
44# with "unable to exec C compiler".44# so that installation and testing do not get affected by them.
45unset CC45unset CC
46unset CXX46unset CXX
47unset ZIG_LIBC
4748
48make $JOBS install49make $JOBS install
49release/bin/zig build test50release/bin/zig build test