authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-29 04:32:17+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-04-01 11:41:33+02:00
logda78940dd2175b3f0a60f295f9e3a05cd6bf8f79
tree299721af2ddf0f4608b6fcad55b48dc7c8e805ea
parent27611c10f8dc6a58161699a30a573459d855aede

add a few missing language tags to the README


1 files changed, 13 insertions(+), 13 deletions(-)

README.md+13-13
......@@ -54,7 +54,7 @@ Ensure you have the required dependencies:
5454
5555Then it is the standard CMake build process:
5656
57```
57```sh
5858mkdir build
5959cd build
6060cmake ..
......@@ -69,7 +69,7 @@ This produces `stage3/bin/zig` which is the Zig compiler built by itself.
6969
7070In this case, the only system dependency is a C compiler.
7171
72```
72```sh
7373cc -o bootstrap bootstrap.c
7474./bootstrap
7575```
......@@ -95,7 +95,7 @@ installed C compiler toolchain.
9595From here you can tinker with `zig2` or you can proceed to installation using
9696the build system as usual:
9797
98```
98```sh
9999./zig2 build
100100```
101101
......@@ -118,7 +118,7 @@ The easiest way to obtain both of these artifacts is to use
118118directory `out/zig-$target-$cpu` and `out/$target-$cpu`, to be used as
119119`$ZIG_PREFIX` and `$LLVM_PREFIX`, respectively, in the following command:
120120
121```
121```sh
122122"$ZIG_PREFIX/zig" build \
123123 -p stage3 \
124124 --search-prefix "$LLVM_PREFIX" \
......@@ -369,7 +369,7 @@ directory instead of a global installation.
369369
370370This is the generally recommended approach.
371371
372```
372```sh
373373cd ~/Downloads
374374git clone --depth 1 --branch release/21.x https://github.com/llvm/llvm-project llvm-project-21
375375cd llvm-project-21
......@@ -396,7 +396,7 @@ This is occasionally needed when debugging Zig's LLVM backend. Here we build
396396the three projects separately so that LLVM can be in Debug mode while the
397397others are in Release mode.
398398
399```
399```sh
400400cd ~/Downloads
401401git clone --depth 1 --branch release/21.x https://github.com/llvm/llvm-project llvm-project-21
402402cd llvm-project-21
......@@ -552,7 +552,7 @@ To reduce time spent waiting for the compiler to build, try these techniques:
552552
553553### Testing
554554
555```
555```sh
556556stage4/bin/zig build test
557557```
558558
......@@ -572,7 +572,7 @@ Another example is choosing a different set of things to test. For example,
572572not the other ones. Combining this suggestion with the previous one, you could
573573do this:
574574
575```
575```sh
576576stage4/bin/zig build test-std -Dskip-release
577577```
578578
......@@ -588,13 +588,13 @@ this information and more in the `zig build --help` menu.
588588This command will run the standard library tests with only the native target
589589configuration and is estimated to complete in 3 minutes:
590590
591```
591```sh
592592zig build test-std -Dno-matrix
593593```
594594
595595However, one may also use `zig test` directly. From inside the `ziglang/zig` repo root:
596596
597```
597```sh
598598zig test lib/std/std.zig --zig-lib-dir lib
599599```
600600
......@@ -605,14 +605,14 @@ you're trying to test in practice.)
605605
606606Note that `--test-filter` filters on fully qualified names, so e.g. it's possible to run only the `std.json` tests with:
607607
608```
608```sh
609609zig test lib/std/std.zig --zig-lib-dir lib --test-filter "json."
610610```
611611
612612If you used `-Dno-lib` and you are in a `build/` subdirectory, you can omit the
613613`--zig-lib-dir` argument:
614614
615```
615```sh
616616stage3/bin/zig test ../lib/std/std.zig
617617```
618618
......@@ -771,7 +771,7 @@ To build the LLDB fork, make sure you have
771771[prerequisites](https://lldb.llvm.org/resources/build.html#preliminaries)
772772installed, and then do something like:
773773
774```
774```sh
775775$ cmake llvm -G Ninja -B build -DLLVM_ENABLE_PROJECTS="clang;lldb" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLLVM_ENABLE_ASSERTIONS=ON -DLLDB_ENABLE_LIBEDIT=ON -DLLDB_ENABLE_PYTHON=ON
776776$ cmake --build build --target lldb --target lldb-server
777777```