Merge pull request #176 from birth-software/restrict-linking
Only link editor libraries if actually using it
This commit is contained in:
commit
72e42afc86
@ -479,7 +479,7 @@ pub fn build(b: *std.Build) !void {
|
|||||||
compiler.addIncludePath(.{ .cwd_relative = cxx_include_base });
|
compiler.addIncludePath(.{ .cwd_relative = cxx_include_base });
|
||||||
compiler.addIncludePath(.{ .cwd_relative = try std.mem.concat(b.allocator, u8, &.{ cxx_include_base, "/" ++ @tagName(@import("builtin").cpu.arch) ++ "-redhat-linux" }) });
|
compiler.addIncludePath(.{ .cwd_relative = try std.mem.concat(b.allocator, u8, &.{ cxx_include_base, "/" ++ @tagName(@import("builtin").cpu.arch) ++ "-redhat-linux" }) });
|
||||||
compiler.addLibraryPath(.{ .cwd_relative = "/usr/lib64/llvm17/lib" });
|
compiler.addLibraryPath(.{ .cwd_relative = "/usr/lib64/llvm17/lib" });
|
||||||
compiler.addLibraryPath(.{ .cwd_relative = "/usr/lib" });
|
compiler.addLibraryPath(.{ .cwd_relative = "/usr/lib64" });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
.macos => {
|
.macos => {
|
||||||
@ -512,7 +512,7 @@ pub fn build(b: *std.Build) !void {
|
|||||||
else => |tag| @panic(@tagName(tag)),
|
else => |tag| @panic(@tagName(tag)),
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_ci) {
|
if (use_editor) {
|
||||||
compiler.linkSystemLibrary("glfw");
|
compiler.linkSystemLibrary("glfw");
|
||||||
compiler.linkSystemLibrary("GL");
|
compiler.linkSystemLibrary("GL");
|
||||||
compiler.addCSourceFiles(.{
|
compiler.addCSourceFiles(.{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user