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....@@ -59,12 +59,12 @@ compromises backward compatibility.
59### Debug / Development Build59### Debug / Development Build
6060
61If you have gcc or clang installed, you can find out what `ZIG_LIBC_DIR` should61If 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
64```64```
65mkdir build65mkdir build
66cd build66cd build
67cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=path/to/libc/dir67cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=$(dirname $(cc -print-file-name=crt1.o))
68make68make
69make install69make install
70./run_tests70./run_tests
...@@ -72,6 +72,9 @@ make install...@@ -72,6 +72,9 @@ make install
7272
73### Release / Install Build73### Release / Install Build
7474
75Once installed, `ZIG_LIBC_DIR` can be overridden by the `--libc-path` parameter
76to the zig binary.
77
75```78```
76mkdir build79mkdir build
77cd build80cd build