authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2015-12-15 13:06:42-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2015-12-15 13:06:42-07:00
logfe94ca8d1049c196d2db114562dc065ffc57b46c
tree575400021b6fd094c41c963297029077d36262d2
parent1b1453293e73169bf7460e6680fbb84dea4a3935

readme: provide bash to get c dir


1 files changed, 5 insertions(+), 2 deletions(-)

README.md+5-2
......@@ -59,12 +59,12 @@ compromises backward compatibility.
5959### Debug / Development Build
6060
6161If you have gcc or clang installed, you can find out what `ZIG_LIBC_DIR` should
62be set to with: `dirname $(cc -print-file-name=crt1.o)`.
62be set to (example below).
6363
6464```
6565mkdir build
6666cd build
67cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=path/to/libc/dir
67cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=$(dirname $(cc -print-file-name=crt1.o))
6868make
6969make install
7070./run_tests
......@@ -72,6 +72,9 @@ make install
7272
7373### Release / Install Build
7474
75Once installed, `ZIG_LIBC_DIR` can be overridden by the `--libc-path` parameter
76to the zig binary.
77
7578```
7679mkdir build
7780cd build