This repository was archived by the owner on Apr 21, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -194,11 +194,14 @@ fn addTestSuite(
194
194
195
195
const test_payload = b .addExecutable (.{
196
196
.name = std .fs .path .stem (entry .basename ),
197
- .root_source_file = b .path (b .fmt ("testsuite/{s}" , .{entry .path })),
198
197
.target = custom_target ,
199
198
.optimize = config .optimize ,
200
199
.strip = false ,
201
200
});
201
+ test_payload .addCSourceFile (.{
202
+ .file = b .path (b .fmt ("testsuite/{s}" , .{entry .path })),
203
+ .flags = &.{},
204
+ });
202
205
test_payload .bundle_compiler_rt = false ;
203
206
test_payload .addIncludePath (b .path ("testsuite" ));
204
207
test_payload .setLinkerScriptPath (b .path ("linker.ld" ));
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ fn validateSystemAndExit(exit_mode: ExitMode) noreturn {
103
103
std .debug .print ("test {s} failed.\n " , .{ts .options .name });
104
104
}
105
105
106
- std .os .exit (if (ok ) 0x00 else 0x01 );
106
+ std .process .exit (if (ok ) 0x00 else 0x01 );
107
107
}
108
108
109
109
pub fn main () ! u8 {
@@ -352,16 +352,16 @@ const IO = struct {
352
352
fn lobyte (val : * u16 ) * u8 {
353
353
const bits : * [2 ]u8 = @ptrCast (val );
354
354
return switch (comptime builtin .cpu .arch .endian ()) {
355
- .Big = > return & bits [1 ],
356
- .Little = > return & bits [0 ],
355
+ .big = > return & bits [1 ],
356
+ .little = > return & bits [0 ],
357
357
};
358
358
}
359
359
360
360
fn hibyte (val : * u16 ) * u8 {
361
361
const bits : * [2 ]u8 = @ptrCast (val );
362
362
return switch (comptime builtin .cpu .arch .endian ()) {
363
- .Big = > return & bits [0 ],
364
- .Little = > return & bits [1 ],
363
+ .big = > return & bits [0 ],
364
+ .little = > return & bits [1 ],
365
365
};
366
366
}
367
367
You can’t perform that action at this time.
0 commit comments