Commit 20c230cda9

Andrew Kelley <andrew@ziglang.org>
2022-07-27 11:13:01
test-cases harness: annotate an optional type
Not sure why this is needed by the CI; it's not needed locally. This is a mystery that will have to wait for another day.
1 parent ffac6a1
Changed files (1)
src/test.zig
@@ -1843,7 +1843,7 @@ pub const TestContext = struct {
 
                             .qemu => |qemu_bin_name| if (enable_qemu) {
                                 const need_cross_glibc = target.isGnuLibC() and case.link_libc;
-                                const glibc_dir_arg = if (need_cross_glibc)
+                                const glibc_dir_arg: ?[]const u8 = if (need_cross_glibc)
                                     glibc_runtimes_dir orelse continue :update // glibc dir not available; pass test
                                 else
                                     null;