all: clarify self-hosted compiler TODOs
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
f56606a3c3
commit
4199d2a001
4 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ const gpu = @import("gpu");
|
||||||
|
|
||||||
pub const App = @This();
|
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,
|
unused: f32,
|
||||||
|
|
||||||
const workgroup_size = 64;
|
const workgroup_size = 64;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ pub const c = if (@import("builtin").zig_backend == .stage1)
|
||||||
@cInclude("GLFW/glfw3.h");
|
@cInclude("GLFW/glfw3.h");
|
||||||
})
|
})
|
||||||
else
|
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`)
|
// Extracted from a build using stage1 from zig-cache/ (`cimport.zig`)
|
||||||
// Then find+replace `= ?fn` -> `= ?*const fn`
|
// Then find+replace `= ?fn` -> `= ?*const fn`
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ pub fn Native(comptime options: BackendOptions) type {
|
||||||
@cInclude("GLFW/glfw3native.h");
|
@cInclude("GLFW/glfw3native.h");
|
||||||
})
|
})
|
||||||
else
|
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`)
|
// Extracted from a build using stage1 from zig-cache/ (`cimport.zig`)
|
||||||
// Then find+replace `= ?fn` -> `= ?*const fn`
|
// Then find+replace `= ?fn` -> `= ?*const fn`
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ const c = if (@import("builtin").zig_backend == .stage1)
|
||||||
@cInclude("mach_dawn.h");
|
@cInclude("mach_dawn.h");
|
||||||
})
|
})
|
||||||
else
|
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/
|
// cd gpu/src/
|
||||||
// echo '#include <dawn/webgpu.h>' > tmp.c
|
// echo '#include <dawn/webgpu.h>' > tmp.c
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue