mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-07-30 12:27:57 +00:00
build-system: Replace deprecated usages of addStaticLibrary with addLibrary (#8029)
Hi there, this is just a low-hanging fruit and it also prepares the way for the future 0.15, which removes addStaticLibrary. Please, let me know what to do on the `// TODO` comments.
This commit is contained in:
@@ -18,7 +18,7 @@ pub fn initStatic(
|
||||
b: *std.Build,
|
||||
deps: *const SharedDeps,
|
||||
) !GhosttyLib {
|
||||
const lib = b.addStaticLibrary(.{
|
||||
const lib = b.addLibrary(.{
|
||||
.name = "ghostty",
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main_c.zig"),
|
||||
@@ -28,6 +28,7 @@ pub fn initStatic(
|
||||
.omit_frame_pointer = deps.config.strip,
|
||||
.unwind_tables = if (deps.config.strip) .none else .sync,
|
||||
}),
|
||||
.linkage = .static,
|
||||
});
|
||||
lib.linkLibC();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user