mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-11-14 05:40:47 -05:00
disable the async excercises because of temporary not available in zig
compiler
This commit is contained in:
parent
860b923b16
commit
22289d6ad1
1 changed files with 46 additions and 44 deletions
90
build.zig
90
build.zig
|
@ -418,47 +418,48 @@ const exercises = [_]Exercise{
|
||||||
.main_file = "083_anonymous_lists.zig",
|
.main_file = "083_anonymous_lists.zig",
|
||||||
.output = "I say hello!",
|
.output = "I say hello!",
|
||||||
},
|
},
|
||||||
.{
|
// disabled because of https://github.com/ratfactor/ziglings/issues/163
|
||||||
.main_file = "084_async.zig",
|
// .{
|
||||||
.output = "foo() A",
|
// .main_file = "084_async.zig",
|
||||||
.hint = "Read the facts. Use the facts.",
|
// .output = "foo() A",
|
||||||
.@"async" = true,
|
// .hint = "Read the facts. Use the facts.",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "085_async2.zig",
|
// .{
|
||||||
.output = "Hello async!",
|
// .main_file = "085_async2.zig",
|
||||||
.@"async" = true,
|
// .output = "Hello async!",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "086_async3.zig",
|
// .{
|
||||||
.output = "5 4 3 2 1",
|
// .main_file = "086_async3.zig",
|
||||||
.@"async" = true,
|
// .output = "5 4 3 2 1",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "087_async4.zig",
|
// .{
|
||||||
.output = "1 2 3 4 5",
|
// .main_file = "087_async4.zig",
|
||||||
.@"async" = true,
|
// .output = "1 2 3 4 5",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "088_async5.zig",
|
// .{
|
||||||
.output = "Example Title.",
|
// .main_file = "088_async5.zig",
|
||||||
.@"async" = true,
|
// .output = "Example Title.",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "089_async6.zig",
|
// .{
|
||||||
.output = ".com: Example Title, .org: Example Title.",
|
// .main_file = "089_async6.zig",
|
||||||
.@"async" = true,
|
// .output = ".com: Example Title, .org: Example Title.",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "090_async7.zig",
|
// .{
|
||||||
.output = "beef? BEEF!",
|
// .main_file = "090_async7.zig",
|
||||||
.@"async" = true,
|
// .output = "beef? BEEF!",
|
||||||
},
|
// .@"async" = true,
|
||||||
.{
|
// },
|
||||||
.main_file = "091_async8.zig",
|
// .{
|
||||||
.output = "ABCDEF",
|
// .main_file = "091_async8.zig",
|
||||||
.@"async" = true,
|
// .output = "ABCDEF",
|
||||||
},
|
// .@"async" = true,
|
||||||
|
// },
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Check the zig version to make sure it can compile the examples properly.
|
/// Check the zig version to make sure it can compile the examples properly.
|
||||||
|
@ -711,9 +712,10 @@ const ZiglingStep = struct {
|
||||||
zig_args.append("build-exe") catch unreachable;
|
zig_args.append("build-exe") catch unreachable;
|
||||||
|
|
||||||
// Enable the stage 1 compiler if using the async feature
|
// Enable the stage 1 compiler if using the async feature
|
||||||
if (self.exercise.@"async") {
|
// disabled because of https://github.com/ratfactor/ziglings/issues/163
|
||||||
zig_args.append("-fstage1") catch unreachable;
|
// if (self.exercise.@"async") {
|
||||||
}
|
// zig_args.append("-fstage1") catch unreachable;
|
||||||
|
// }
|
||||||
|
|
||||||
if (builder.color != .auto) {
|
if (builder.color != .auto) {
|
||||||
zig_args.append("--color") catch unreachable;
|
zig_args.append("--color") catch unreachable;
|
||||||
|
|
Loading…
Reference in a new issue