mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-10-28 10:45:48 +08:00
README: --zig-lib-dir -> --zig-lib for zig build
This commit is contained in:
1 file changed
+2
-2
@@ -120,9 +120,9 @@ directory `out/zig-$target-$cpu` and `out/$target-$cpu`, to be used as
|
||||
|
||||
```sh
|
||||
"$ZIG_PREFIX/zig" build \
|
||||
--zig-lib=lib \
|
||||
-p stage3 \
|
||||
--search-prefix "$LLVM_PREFIX" \
|
||||
--zig-lib-dir "lib" \
|
||||
-Dstatic-llvm
|
||||
```
|
||||
|
||||
@@ -193,7 +193,7 @@ You now have the `zig.exe` binary at `stage3\bin\zig.exe`.
|
||||
Unzip the dev kit and then in cmd.exe in your Zig source checkout:
|
||||
|
||||
```bat
|
||||
$DEVKIT\bin\zig.exe build -p stage3 --search-prefix $DEVKIT --zig-lib-dir lib -Dstatic-llvm -Duse-zig-libcxx -Dtarget=x86_64-windows-gnu
|
||||
$DEVKIT\bin\zig.exe build --zig-lib=lib -p stage3 --search-prefix $DEVKIT -Dstatic-llvm -Duse-zig-libcxx -Dtarget=x86_64-windows-gnu
|
||||
```
|
||||
|
||||
Replace `$DEVKIT` with the path to the folder that you unzipped after
|
||||
|
||||
Reference in new issue
Block a user