diff --git a/src/build/GhosttyExe.zig b/src/build/GhosttyExe.zig index ef5303baa..e251e7b45 100644 --- a/src/build/GhosttyExe.zig +++ b/src/build/GhosttyExe.zig @@ -99,7 +99,7 @@ fn checkNixShell(exe: *std.Build.Step.Compile, cfg: *const Config) !void { \\ \\ nix develop -c zig build \\ - ++ + ++ "\x1b[0m", .{}, ); diff --git a/src/build/SharedDeps.zig b/src/build/SharedDeps.zig index 18f43b387..ae9f09afe 100644 --- a/src/build/SharedDeps.zig +++ b/src/build/SharedDeps.zig @@ -277,7 +277,10 @@ pub fn add( // on x86_64. if (step.rootModuleTarget().os.tag == .linux) { const triple = try step.rootModuleTarget().linuxTriple(b.allocator); - step.addLibraryPath(.{ .cwd_relative = b.fmt("/usr/lib/{s}", .{triple}) }); + const path = b.fmt("/usr/lib/{s}", .{triple}); + if (std.fs.accessAbsolute(path, .{})) { + step.addLibraryPath(.{ .cwd_relative = path }); + } else |_| {} } // C files diff --git a/src/os/wasm.zig b/src/os/wasm.zig index f8d7a34e2..73a5922cf 100644 --- a/src/os/wasm.zig +++ b/src/os/wasm.zig @@ -4,7 +4,7 @@ const builtin = @import("builtin"); const options = @import("build_options"); comptime { - if (!builtin.target.isWasm()) { + if (!builtin.target.cpu.arch.isWasm()) { @compileError("wasm.zig should only be analyzed for wasm32 builds"); } }