all: clarify self-hosted compiler TODOs

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-08-20 23:37:48 -07:00
parent f56606a3c3
commit 4199d2a001
4 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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`

View file

@ -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`

View file

@ -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 <dawn/webgpu.h>' > tmp.c