From 0dffab7356685c7643aa6e3cbe0ad1a18bc0dd55 Mon Sep 17 00:00:00 2001 From: xdBronch <51252236+xdBronch@users.noreply.github.com> Date: Sat, 1 Jul 2023 23:26:02 -0400 Subject: [PATCH] check for UEFI in io.StreamSource --- lib/std/io/stream_source.zig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/std/io/stream_source.zig b/lib/std/io/stream_source.zig index ce5256028c..eea6deff67 100644 --- a/lib/std/io/stream_source.zig +++ b/lib/std/io/stream_source.zig @@ -7,7 +7,8 @@ const io = std.io; /// For memory sources, if the supplied byte buffer is const, then `io.Writer` is not available. /// The error set of the stream functions is the error set of the corresponding file functions. pub const StreamSource = union(enum) { - const has_file = (builtin.os.tag != .freestanding); + // TODO: expose UEFI files to std.os in a way that allows this to be true + const has_file = (builtin.os.tag != .freestanding and builtin.os.tag != .uefi); /// The stream access is redirected to this buffer. buffer: io.FixedBufferStream([]u8),