aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/pkg/glslang
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-10 21:51:57 +0300
committerGitHub <noreply@github.com>2026-09-10 21:51:57 +0300
commit425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch)
treee52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/pkg/glslang
parent90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff)
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/pkg/glslang')
-rw-r--r--vendor/libghostty-vt/pkg/glslang/build.zig28
1 files changed, 13 insertions, 15 deletions
diff --git a/vendor/libghostty-vt/pkg/glslang/build.zig b/vendor/libghostty-vt/pkg/glslang/build.zig
index 1dc82a6e..92e614b1 100644
--- a/vendor/libghostty-vt/pkg/glslang/build.zig
+++ b/vendor/libghostty-vt/pkg/glslang/build.zig
@@ -26,7 +26,7 @@ pub fn build(b: *std.Build) !void {
.optimize = optimize,
}),
});
- test_exe.linkLibrary(lib);
+ test_exe.root_module.linkLibrary(lib);
const tests_run = b.addRunArtifact(test_exe);
const test_step = b.step("test", "Run tests");
test_step.dependOn(&tests_run.step);
@@ -47,20 +47,18 @@ fn buildGlslang(
.root_module = b.createModule(.{
.target = target,
.optimize = optimize,
+ .link_libc = true,
+ // On MSVC, we must not use linkLibCpp because Zig unconditionally
+ // passes -nostdinc++ and then adds its bundled libc++/libc++abi
+ // include paths, which conflict with MSVC's own C++ runtime
+ // headers. The MSVC SDK include directories (added via linkLibC)
+ // contain both C and C++ headers, so linkLibCpp is not needed.
+ .link_libcpp = target.result.abi != .msvc,
}),
.linkage = .static,
});
- lib.linkLibC();
- // On MSVC, we must not use linkLibCpp because Zig unconditionally
- // passes -nostdinc++ and then adds its bundled libc++/libc++abi
- // include paths, which conflict with MSVC's own C++ runtime headers.
- // The MSVC SDK include directories (added via linkLibC) contain
- // both C and C++ headers, so linkLibCpp is not needed.
- if (target.result.abi != .msvc) {
- lib.linkLibCpp();
- }
- if (upstream_) |upstream| lib.addIncludePath(upstream.path(""));
- lib.addIncludePath(b.path("override"));
+ if (upstream_) |upstream| lib.root_module.addIncludePath(upstream.path(""));
+ lib.root_module.addIncludePath(b.path("override"));
if (target.result.os.tag.isDarwin()) {
const apple_sdk = @import("apple_sdk");
try apple_sdk.addPaths(b, lib);
@@ -82,7 +80,7 @@ fn buildGlslang(
}
if (upstream_) |upstream| {
- lib.addCSourceFiles(.{
+ lib.root_module.addCSourceFiles(.{
.root = upstream.path(""),
.flags = flags.items,
.files = &.{
@@ -141,7 +139,7 @@ fn buildGlslang(
});
if (target.result.os.tag != .windows) {
- lib.addCSourceFiles(.{
+ lib.root_module.addCSourceFiles(.{
.root = upstream.path(""),
.flags = flags.items,
.files = &.{
@@ -149,7 +147,7 @@ fn buildGlslang(
},
});
} else {
- lib.addCSourceFiles(.{
+ lib.root_module.addCSourceFiles(.{
.root = upstream.path(""),
.flags = flags.items,
.files = &.{