| ... | @@ -84,8 +84,6 @@ If you have gcc or clang installed, you can find out what `ZIG_LIBC_LIB_DIR`, | ... | @@ -84,8 +84,6 @@ If you have gcc or clang installed, you can find out what `ZIG_LIBC_LIB_DIR`, |
| 84 | `ZIG_LIBC_STATIC_LIB_DIR`, and `ZIG_LIBC_INCLUDE_DIR` should be set to | 84 | `ZIG_LIBC_STATIC_LIB_DIR`, and `ZIG_LIBC_INCLUDE_DIR` should be set to |
| 85 | (example below). | 85 | (example below). |
| 86 | | 86 | |
| 87 | For MacOS, `ZIG_LIBC_LIB_DIR` and `ZIG_LIBC_STATIC_LIB_DIR` are unused. | | |
| 88 | | | |
| 89 | ``` | 87 | ``` |
| 90 | mkdir build | 88 | mkdir build |
| 91 | cd build | 89 | cd build |
| ... | @@ -97,12 +95,14 @@ make install | ... | @@ -97,12 +95,14 @@ make install |
| 97 | | 95 | |
| 98 | #### MacOS | 96 | #### MacOS |
| 99 | | 97 | |
| | 98 | `ZIG_LIBC_LIB_DIR` and `ZIG_LIBC_STATIC_LIB_DIR` are unused. |
| | 99 | |
| 100 | ``` | 100 | ``` |
| 101 | brew install llvm@5 | 101 | brew install llvm@5 |
| 102 | brew outdated llvm@5 || brew upgrade llvm@5 | 102 | brew outdated llvm@5 || brew upgrade llvm@5 |
| 103 | mkdir build | 103 | mkdir build |
| 104 | cd build | 104 | cd build |
| 105 | cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm@5/ -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_INCLUDE_DIR=/usr/include | 105 | cmake .. -DCMAKE_PREFIX_PATH=/usr/local/opt/llvm@5/ -DCMAKE_INSTALL_PREFIX=$(pwd) |
| 106 | make install | 106 | make install |
| 107 | ``` | 107 | ``` |
| 108 | | 108 | |