mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-09 09:35:19 +09:00
build: add the Exercise.addExecutable method
Currently addExecutable is called 3 times, unnecessarily making the code more complex. The method takes as argument the path to the exercises directory. Additionally, use the new std.Build.ExecutableOptions.link_libc field. The new field was added in ziglang/zig@adc9b77d5f on 2023-04-13. Update the required Zig compiler version. Note that I added the **current** zig version to the changelog, since the reason for the change is known only to the person updating the version.
This commit is contained in:
parent
123fd4b105
commit
69103a3b82
3 changed files with 21 additions and 23 deletions
|
@ -40,7 +40,7 @@ Verify the installation and build number of `zig` like so:
|
|||
|
||||
```
|
||||
$ zig version
|
||||
0.11.0-dev.2560+xxxxxxxxx
|
||||
0.11.0-dev.2704+xxxxxxxxx
|
||||
```
|
||||
|
||||
Clone this repository with Git:
|
||||
|
@ -77,7 +77,9 @@ need to also update the other.
|
|||
|
||||
### Version Changes
|
||||
|
||||
Version-0.11.0-dev.2560+602029bb2
|
||||
Version-0.11.0-dev.2704+83970b6d9
|
||||
* *2023-04-30* zig 0.11.0-dev.2704 - use of the new `std.Build.ExecutableOptions.link_libc` field
|
||||
* *2023-04-12* zig 0.11.0-dev.2560 - changes in `std.Build` - remove run() and install()
|
||||
* *2023-04-07* zig 0.11.0-dev.2401 - fixes of the new build system - see [#212](https://github.com/ratfactor/ziglings/pull/212)
|
||||
* *2023-02-21* zig 0.11.0-dev.2157 - changes in `build system` - new: parallel processing of the build steps
|
||||
* *2023-02-21* zig 0.11.0-dev.1711 - changes in `for loops` - new: Multi-Object For-Loops + Struct-of-Arrays
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue