1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-11 04:36:04 +02:00

Compare commits

...

4 Commits

Author SHA1 Message Date
Chris Boesch d572302e2c
Merge pull request #342 from ratfactor/v4246
Upgrade to Zig version 4246
2023-07-26 20:28:22 +02:00
Chris Boesch 3ee6c6e440 Upgrade to Zig version 4246 2023-07-26 20:20:40 +02:00
Chris Boesch d67789c6d4
Merge pull request #340 from nchataing/fix-main-build
fix: main entry point is broken with version 0.11.0-dev.4228
2023-07-26 19:46:45 +02:00
Nicolas Chataing a1f088a7b0 fix: main entry point is broken with version 0.11.0-dev.4228 2023-07-25 14:59:17 +02:00
3 changed files with 6 additions and 5 deletions

View File

@ -45,7 +45,7 @@ Verify the installation and build number of `zig` like so:
```
$ zig version
0.11.0-dev.3853+xxxxxxxxx
0.11.0-dev.4246+xxxxxxxxx
```
Clone this repository with Git:
@ -89,7 +89,8 @@ that if you update one, you may need to also update the other.
### Version Changes
Version-0.11.0-dev.3853+cc2daae47
Version-0.11.0-dev.4246+71dfce31b
* *2023-06-26* zig 0.11.0-dev.4246 - changes in compile step (now it can be null)
* *2023-06-26* zig 0.11.0-dev.3853 - removal of destination type from all cast builtins
* *2023-06-20* zig 0.11.0-dev.3747 - `@enumToInt` is now `@intFromEnum` and `@intToFloat` is now `@floatFromInt`
* *2023-05-25* zig 0.11.0-dev.3295 - `std.debug.TTY` is now `std.io.tty`

View File

@ -240,7 +240,7 @@ const ZiglingStep = struct {
std.os.exit(2);
};
self.run(exe_path, prog_node) catch {
self.run(exe_path.?, prog_node) catch {
self.printErrors();
if (self.exercise.hint) |hint|
@ -350,7 +350,7 @@ const ZiglingStep = struct {
print("{s}PASSED{s}\n\n", .{ green_text, reset_text });
}
fn compile(self: *ZiglingStep, prog_node: *std.Progress.Node) ![]const u8 {
fn compile(self: *ZiglingStep, prog_node: *std.Progress.Node) !?[]const u8 {
print("Compiling {s}...\n", .{self.exercise.main_file});
const b = self.step.owner;

View File

@ -15,7 +15,7 @@ const print = if (@hasDecl(debug, "print")) debug.print else debug.warn;
// When changing this version, be sure to also update README.md in two places:
// 1) Getting Started
// 2) Version Changes
const needed_version_str = "0.11.0-dev.3853";
const needed_version_str = "0.11.0-dev.4246";
fn isCompatible() bool {
if (!@hasDecl(builtin, "zig_version") or !@hasDecl(std, "SemanticVersion")) {