summaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2026-03-21 20:14:31 +0100
committerChris Boesch <chrboesch@noreply.codeberg.org>2026-03-21 20:14:31 +0100
commit8f7a629ffb36940696a1af3b24e6bc233b9bfe74 (patch)
tree61febf3e0b854e0aba83d86fca6f52c313d9bb4f /build.zig
parentd3ec872decec27e34df9f4b07c759caa19172fcf (diff)
switched to llvm for the c-exercixes
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig10
1 files changed, 3 insertions, 7 deletions
diff --git a/build.zig b/build.zig
index a873745..968a6b0 100644
--- a/build.zig
+++ b/build.zig
@@ -355,7 +355,7 @@ const ZiglingStep = struct {
if (self.exercise.skip_hint) |hint|
print("\n{s}Reason: {s}{s}\n", .{ bold_text, hint, reset_text });
- print( "\n\n", .{});
+ print("\n\n", .{});
return;
}
@@ -514,6 +514,7 @@ const ZiglingStep = struct {
// Enable C support for exercises that use C functions.
if (self.exercise.link_libc) {
zig_args.append("-lc") catch @panic("OOM");
+ zig_args.append("-fllvm") catch @panic("OOM");
}
if (b.reference_trace) |rt| {
@@ -1042,12 +1043,7 @@ const exercises = [_]Exercise{
.main_file = "073_comptime8.zig",
.output = "My llama value is 25.",
},
- .{
- .main_file = "074_comptime9.zig",
- .output = "My llama value is 2.",
- .skip = false,
- .skip_hint = "This is actually correct as it is. :-)"
- },
+ .{ .main_file = "074_comptime9.zig", .output = "My llama value is 2.", .skip = false, .skip_hint = "This is actually correct as it is. :-)" },
.{
.main_file = "075_quiz8.zig",
.output = "Archer's Point--2->Bridge--1->Dogwood Grove--3->Cottage--2->East Pond--1->Fox Pond",