| ... | ... | @@ -71,40 +71,3 @@ can do about it. See that issue for a workaround you can do in the meantime. |
| 71 | 71 | ##### Windows |
| 72 | 72 | |
| 73 | 73 | See https://github.com/ziglang/zig/wiki/Building-Zig-on-Windows |
| 74 | | |
| 75 | | ### Stage 2: Build Self-Hosted Zig from Zig Source Code |
| 76 | | |
| 77 | | *Note: Stage 2 compiler is not complete. Beta users of Zig should use the |
| 78 | | Stage 1 compiler for now.* |
| 79 | | |
| 80 | | Dependencies are the same as Stage 1, except now you can use stage 1 to compile |
| 81 | | Zig code. |
| 82 | | |
| 83 | | ``` |
| 84 | | bin/zig build --prefix $(pwd)/stage2 |
| 85 | | ``` |
| 86 | | |
| 87 | | This produces `./stage2/bin/zig` which can be used for testing and development. |
| 88 | | Once it is feature complete, it will be used to build stage 3 - the final compiler |
| 89 | | binary. |
| 90 | | |
| 91 | | ### Stage 3: Rebuild Self-Hosted Zig Using the Self-Hosted Compiler |
| 92 | | |
| 93 | | *Note: Stage 2 compiler is not yet able to build Stage 3. Building Stage 3 is |
| 94 | | not yet supported.* |
| 95 | | |
| 96 | | Once the self-hosted compiler can build itself, this will be the actual |
| 97 | | compiler binary that we will install to the system. Until then, users should |
| 98 | | use stage 1. |
| 99 | | |
| 100 | | #### Debug / Development Build |
| 101 | | |
| 102 | | ``` |
| 103 | | ./stage2/bin/zig build --prefix $(pwd)/stage3 |
| 104 | | ``` |
| 105 | | |
| 106 | | #### Release / Install Build |
| 107 | | |
| 108 | | ``` |
| 109 | | ./stage2/bin/zig build install -Drelease |
| 110 | | ``` |