mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-09-07 03:48:21 +00:00
fix /usr/lib issues
This commit is contained in:
@@ -277,7 +277,10 @@ pub fn add(
|
|||||||
// on x86_64.
|
// on x86_64.
|
||||||
if (step.rootModuleTarget().os.tag == .linux) {
|
if (step.rootModuleTarget().os.tag == .linux) {
|
||||||
const triple = try step.rootModuleTarget().linuxTriple(b.allocator);
|
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
|
// C files
|
||||||
|
@@ -4,7 +4,7 @@ const builtin = @import("builtin");
|
|||||||
const options = @import("build_options");
|
const options = @import("build_options");
|
||||||
|
|
||||||
comptime {
|
comptime {
|
||||||
if (!builtin.target.isWasm()) {
|
if (!builtin.target.cpu.arch.isWasm()) {
|
||||||
@compileError("wasm.zig should only be analyzed for wasm32 builds");
|
@compileError("wasm.zig should only be analyzed for wasm32 builds");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user