| ... | ... | @@ -59,12 +59,12 @@ compromises backward compatibility. |
| 59 | 59 | ### Debug / Development Build |
| 60 | 60 | |
| 61 | 61 | If you have gcc or clang installed, you can find out what `ZIG_LIBC_DIR` should |
| 62 | | be set to with: `dirname $(cc -print-file-name=crt1.o)`. |
| 62 | be set to (example below). |
| 63 | 63 | |
| 64 | 64 | ``` |
| 65 | 65 | mkdir build |
| 66 | 66 | cd build |
| 67 | | cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=path/to/libc/dir |
| 67 | cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=$(dirname $(cc -print-file-name=crt1.o)) |
| 68 | 68 | make |
| 69 | 69 | make install |
| 70 | 70 | ./run_tests |
| ... | ... | @@ -72,6 +72,9 @@ make install |
| 72 | 72 | |
| 73 | 73 | ### Release / Install Build |
| 74 | 74 | |
| 75 | Once installed, `ZIG_LIBC_DIR` can be overridden by the `--libc-path` parameter |
| 76 | to the zig binary. |
| 77 | |
| 75 | 78 | ``` |
| 76 | 79 | mkdir build |
| 77 | 80 | cd build |