aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2015-12-15 13:06:42 -0700
committerAndrew Kelley <superjoe30@gmail.com>2015-12-15 13:06:42 -0700
commitfe94ca8d1049c196d2db114562dc065ffc57b46c (patch)
tree575400021b6fd094c41c963297029077d36262d2
parent1b1453293e73169bf7460e6680fbb84dea4a3935 (diff)
downloadzig-fe94ca8d1049c196d2db114562dc065ffc57b46c.tar.gz
zig-fe94ca8d1049c196d2db114562dc065ffc57b46c.zip
readme: provide bash to get c dir
-rw-r--r--README.md7
1 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0191320859..0a2a0722d8 100644
--- a/README.md
+++ b/README.md
@@ -59,12 +59,12 @@ compromises backward compatibility.
### Debug / Development Build
If you have gcc or clang installed, you can find out what `ZIG_LIBC_DIR` should
-be set to with: `dirname $(cc -print-file-name=crt1.o)`.
+be set to (example below).
```
mkdir build
cd build
-cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=path/to/libc/dir
+cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd) -DZIG_LIBC_DIR=$(dirname $(cc -print-file-name=crt1.o))
make
make install
./run_tests
@@ -72,6 +72,9 @@ make install
### Release / Install Build
+Once installed, `ZIG_LIBC_DIR` can be overridden by the `--libc-path` parameter
+to the zig binary.
+
```
mkdir build
cd build