PiergiorgioZagaria
PiergiorgioZagaria
Now stderr is always logged, (if the status code is zero `log::debug` is used else if there was an error `log::error` is used). In case of errors stderr still returns...
This is some stuff I found out trying to test mach/glfw with -fno-stage1. To compile the build.zig we just need to change `thisDir()` to `(comptime thisDir())`. This is maybe due...
> /media/data/Projects/Compilers_or_Interpreters/zig/lib/std/mem.zig:624:29: error: invalid type given to std.mem.Span > else => @compileError("invalid type given to std.mem.Span"), > ^ > /media/data/Projects/Compilers_or_Interpreters/zig/lib/std/mem.zig:669:31: note: called from here > pub fn span(ptr: anytype) Span(@TypeOf(ptr))...
Solved the last error for compiling mach with glfw, basically `_ = glfw.getProcAddress("foobar")` was being called at compile time because GLproc, the return type of getProcAddress used the old function...
Found a stage2 bug while compiling gpu/ with -fno-stage1: ``` (struct { pub fn createShaderModule(ptr: *anyopaque, descriptor: *const ShaderModule.Descriptor) ShaderModule { @compileLog(descriptor.code.wgsl); // @as([*:0]const u8, [runtime value]) switch (descriptor.code) {...
Found out why the union is bugged. This is how it is now, and also the code that swaps the union types. ``` pub const CodeTag = enum { spirv,...
This is a bug I found in mach-freetype. Basically we have 4 packages: ``` const c_pkg = std.build.Pkg{ .name = "c", .source = .{ .path = thisDir() ++ "/src/c.zig" },...
Shouldn't this also be usable if you just want to use glfw without mach? I think `PLATFORM` or `GLFW_PLATFORM` should be the env var
Ok, then I will revert the last commit I pushed to the PR
Shouldn't we close this issue now?