aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-01-21 14:09:20 +0100
committerGitHub <noreply@github.com>2023-01-21 14:09:20 +0100
commitd2f2485a179616fb42b6ff9afd86b2690e08e92e (patch)
treeba180db415aa03a7a1a6b2b1cdc20b67d0896289 /build.zig
parent860b923b16d03de4341ada35f35419c9f4dd9274 (diff)
parent22289d6ad1f1c23c2fe393fed2d3a67147c6197e (diff)
Merge pull request #164 from chrboesch/async
disable the async excercises because of temporary not available in zig: https://github.com/ratfactor/ziglings/issues/163
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig90
1 files changed, 46 insertions, 44 deletions
diff --git a/build.zig b/build.zig
index 1cfa098..59ec8a1 100644
--- a/build.zig
+++ b/build.zig
@@ -418,47 +418,48 @@ const exercises = [_]Exercise{
.main_file = "083_anonymous_lists.zig",
.output = "I say hello!",
},
- .{
- .main_file = "084_async.zig",
- .output = "foo() A",
- .hint = "Read the facts. Use the facts.",
- .@"async" = true,
- },
- .{
- .main_file = "085_async2.zig",
- .output = "Hello async!",
- .@"async" = true,
- },
- .{
- .main_file = "086_async3.zig",
- .output = "5 4 3 2 1",
- .@"async" = true,
- },
- .{
- .main_file = "087_async4.zig",
- .output = "1 2 3 4 5",
- .@"async" = true,
- },
- .{
- .main_file = "088_async5.zig",
- .output = "Example Title.",
- .@"async" = true,
- },
- .{
- .main_file = "089_async6.zig",
- .output = ".com: Example Title, .org: Example Title.",
- .@"async" = true,
- },
- .{
- .main_file = "090_async7.zig",
- .output = "beef? BEEF!",
- .@"async" = true,
- },
- .{
- .main_file = "091_async8.zig",
- .output = "ABCDEF",
- .@"async" = true,
- },
+ // disabled because of https://github.com/ratfactor/ziglings/issues/163
+ // .{
+ // .main_file = "084_async.zig",
+ // .output = "foo() A",
+ // .hint = "Read the facts. Use the facts.",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "085_async2.zig",
+ // .output = "Hello async!",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "086_async3.zig",
+ // .output = "5 4 3 2 1",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "087_async4.zig",
+ // .output = "1 2 3 4 5",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "088_async5.zig",
+ // .output = "Example Title.",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "089_async6.zig",
+ // .output = ".com: Example Title, .org: Example Title.",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "090_async7.zig",
+ // .output = "beef? BEEF!",
+ // .@"async" = true,
+ // },
+ // .{
+ // .main_file = "091_async8.zig",
+ // .output = "ABCDEF",
+ // .@"async" = true,
+ // },
};
/// 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;
// Enable the stage 1 compiler if using the async feature
- if (self.exercise.@"async") {
- zig_args.append("-fstage1") catch unreachable;
- }
+ // disabled because of https://github.com/ratfactor/ziglings/issues/163
+ // if (self.exercise.@"async") {
+ // zig_args.append("-fstage1") catch unreachable;
+ // }
if (builder.color != .auto) {
zig_args.append("--color") catch unreachable;