| ... | @@ -48,7 +48,7 @@ unset CXX | ... | @@ -48,7 +48,7 @@ unset CXX |
| 48 | | 48 | |
| 49 | ninja install | 49 | ninja install |
| 50 | | 50 | |
| 51 | # Must be done after zig cc is finished. | 51 | # Must not be set while using the other `zig cc` which has its own zig lib dir. |
| 52 | export ZIG_LIB_DIR="$PWD/../lib" | 52 | export ZIG_LIB_DIR="$PWD/../lib" |
| 53 | | 53 | |
| 54 | # Covers several things: | 54 | # Covers several things: |
| ... | @@ -99,6 +99,7 @@ cd ../build-new | ... | @@ -99,6 +99,7 @@ cd ../build-new |
| 99 | | 99 | |
| 100 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" | 100 | export CC="$ZIG cc -target $TARGET -mcpu=$MCPU" |
| 101 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" | 101 | export CXX="$ZIG c++ -target $TARGET -mcpu=$MCPU" |
| | 102 | unset ZIG_LIB_DIR |
| 102 | | 103 | |
| 103 | cmake .. \ | 104 | cmake .. \ |
| 104 | -DCMAKE_PREFIX_PATH="$PREFIX" \ | 105 | -DCMAKE_PREFIX_PATH="$PREFIX" \ |
| ... | @@ -117,6 +118,8 @@ unset CXX | ... | @@ -117,6 +118,8 @@ unset CXX |
| 117 | | 118 | |
| 118 | ninja install | 119 | ninja install |
| 119 | | 120 | |
| | 121 | export ZIG_LIB_DIR="$PWD/../lib" |
| | 122 | |
| 120 | stage3/bin/zig test ../test/behavior.zig | 123 | stage3/bin/zig test ../test/behavior.zig |
| 121 | stage3/bin/zig build -p stage4 \ | 124 | stage3/bin/zig build -p stage4 \ |
| 122 | -Dstatic-llvm \ | 125 | -Dstatic-llvm \ |