diff options
| author | Dave Gauer <dave@ratfactor.com> | 2021-02-12 22:30:25 -0500 |
|---|---|---|
| committer | Dave Gauer <dave@ratfactor.com> | 2021-02-12 22:30:25 -0500 |
| commit | a43e7437c04179d96e647200c9e2404cde15a565 (patch) | |
| tree | a1c3fb90e224a5106a79bf9cade4ae02215a3d68 /README.md | |
| parent | d9b8dfa535e1f8a2f00de8977d00ef09b556f0d9 (diff) | |
| parent | 37cb6a8b16ca90492c9e977460e98f710a129e9c (diff) | |
Merge branch 'SpexGuy-zig-build' into main
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 24 |
1 files changed, 19 insertions, 5 deletions
@@ -43,20 +43,35 @@ git clone https://github.com/ratfactor/ziglings cd ziglings ``` -Then run the `ziglings` script and follow the instructions to begin! +Then run `zig build` and follow the instructions to begin! ```bash -./ziglings +zig build ``` ## Manual Usage -If you can't (or don't want to) use the script, you can manually verify each -exercise with the Zig compiler: +If you want to run a single file for testing, you can do so with this command: ```bash zig run exercises/01_hello.zig ``` +or, alternatively +```bash +zig build 01_test +``` + +To verify a single file, use + +```bash +zig build 01_only +``` + +To prepare an executable for debugging, install it to zig-cache/bin with + +```bash +zig build 01_install +``` ## TODO @@ -66,7 +81,6 @@ the learning resource I wished for. There will be tons of room for improvement: * Wording of explanations * Idiomatic usage of Zig * Additional exercises -* Re-write the `ziglings` script using the Zig build system (or just a Zig application) Planned exercises: |
