| ... | @@ -105,6 +105,14 @@ When making changes to the compiler source code, the most helpful test step to | ... | @@ -105,6 +105,14 @@ When making changes to the compiler source code, the most helpful test step to |
| 105 | run is `test-behavior`. When editing documentation it is `docs`. You can find | 105 | run is `test-behavior`. When editing documentation it is `docs`. You can find |
| 106 | this information and more in the `--help` menu. | 106 | this information and more in the `--help` menu. |
| 107 | | 107 | |
| | 108 | #### Testing Changes to std lib |
| | 109 | |
| | 110 | To quickly test a change to a file in the standard library, you can run zig test and specify a custom lib directory with the follow command-line argument. |
| | 111 | |
| | 112 | ```bash |
| | 113 | ./build/zig test lib/std/fmt.zig --zig-lib-dir lib --main-pkg-path lib/std |
| | 114 | ``` |
| | 115 | |
| 108 | #### Testing Non-Native Architectures with QEMU | 116 | #### Testing Non-Native Architectures with QEMU |
| 109 | | 117 | |
| 110 | The Linux CI server additionally has qemu installed and sets `-Denable-qemu`. | 118 | The Linux CI server additionally has qemu installed and sets `-Denable-qemu`. |