From 4199d2a00162fdc989d7f61a3058b08ee44c0503 Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Sat, 20 Aug 2022 23:37:48 -0700 Subject: [PATCH] all: clarify self-hosted compiler TODOs Signed-off-by: Stephen Gutekanst --- examples/map-async/main.zig | 2 +- glfw/src/c.zig | 2 +- glfw/src/native.zig | 2 +- gpu/src/dawn_impl.zig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/map-async/main.zig b/examples/map-async/main.zig index abda48da..9493d523 100644 --- a/examples/map-async/main.zig +++ b/examples/map-async/main.zig @@ -4,7 +4,7 @@ const gpu = @import("gpu"); pub const App = @This(); -// TODO: without a field in this struct, stage3 seems to think `*App` is a `*const App` +// TODO(self-hosted): without a field in this struct, stage3 seems to think `*App` is a `*const App` unused: f32, const workgroup_size = 64; diff --git a/glfw/src/c.zig b/glfw/src/c.zig index 30c00b6e..ece61c9a 100644 --- a/glfw/src/c.zig +++ b/glfw/src/c.zig @@ -4,7 +4,7 @@ pub const c = if (@import("builtin").zig_backend == .stage1) @cInclude("GLFW/glfw3.h"); }) else - // HACK: workaround https://github.com/ziglang/zig/issues/12483 + // TODO(self-hosted): HACK: workaround https://github.com/ziglang/zig/issues/12483 // // Extracted from a build using stage1 from zig-cache/ (`cimport.zig`) // Then find+replace `= ?fn` -> `= ?*const fn` diff --git a/glfw/src/native.zig b/glfw/src/native.zig index 731d1ef6..fff86a1d 100644 --- a/glfw/src/native.zig +++ b/glfw/src/native.zig @@ -57,7 +57,7 @@ pub fn Native(comptime options: BackendOptions) type { @cInclude("GLFW/glfw3native.h"); }) else - // HACK: workaround https://github.com/ziglang/zig/issues/12483 + // TODO(self-hosted): HACK: workaround https://github.com/ziglang/zig/issues/12483 // // Extracted from a build using stage1 from zig-cache/ (`cimport.zig`) // Then find+replace `= ?fn` -> `= ?*const fn` diff --git a/gpu/src/dawn_impl.zig b/gpu/src/dawn_impl.zig index 87ec0d2a..36f59cd1 100644 --- a/gpu/src/dawn_impl.zig +++ b/gpu/src/dawn_impl.zig @@ -6,7 +6,7 @@ const c = if (@import("builtin").zig_backend == .stage1) @cInclude("mach_dawn.h"); }) else - // HACK: workaround https://github.com/ziglang/zig/issues/12483 + // TODO(self-hosted): HACK: workaround https://github.com/ziglang/zig/issues/12483 // // cd gpu/src/ // echo '#include ' > tmp.c