| ... | @@ -40,10 +40,11 @@ cmake .. \ | ... | @@ -40,10 +40,11 @@ cmake .. \ |
| 40 | -DZIG_EXECUTABLE="$ZIG" \ | 40 | -DZIG_EXECUTABLE="$ZIG" \ |
| 41 | -DZIG_STATIC=ON | 41 | -DZIG_STATIC=ON |
| 42 | | 42 | |
| 43 | # TODO unsetting this before `make install` is a workaround for Zig crashing | 43 | # 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. |
| 45 | unset CC | 45 | unset CC |
| 46 | unset CXX | 46 | unset CXX |
| | 47 | unset ZIG_LIBC |
| 47 | | 48 | |
| 48 | make $JOBS install | 49 | make $JOBS install |
| 49 | release/bin/zig build test | 50 | release/bin/zig build test |