mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-03-28 21:34:52 +00:00
switched to llvm for the c-exercixes
This commit is contained in:
parent
d3ec872dec
commit
8f7a629ffb
|
|
@ -514,6 +514,7 @@ const ZiglingStep = struct {
|
||||||
// Enable C support for exercises that use C functions.
|
// Enable C support for exercises that use C functions.
|
||||||
if (self.exercise.link_libc) {
|
if (self.exercise.link_libc) {
|
||||||
zig_args.append("-lc") catch @panic("OOM");
|
zig_args.append("-lc") catch @panic("OOM");
|
||||||
|
zig_args.append("-fllvm") catch @panic("OOM");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (b.reference_trace) |rt| {
|
if (b.reference_trace) |rt| {
|
||||||
|
|
@ -1042,12 +1043,7 @@ const exercises = [_]Exercise{
|
||||||
.main_file = "073_comptime8.zig",
|
.main_file = "073_comptime8.zig",
|
||||||
.output = "My llama value is 25.",
|
.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",
|
.main_file = "075_quiz8.zig",
|
||||||
.output = "Archer's Point--2->Bridge--1->Dogwood Grove--3->Cottage--2->East Pond--1->Fox Pond",
|
.output = "Archer's Point--2->Bridge--1->Dogwood Grove--3->Cottage--2->East Pond--1->Fox Pond",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user