aboutsummaryrefslogtreecommitdiff
path: root/vendor/libghostty-vt/pkg/harfbuzz
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/libghostty-vt/pkg/harfbuzz')
-rw-r--r--vendor/libghostty-vt/pkg/harfbuzz/build.zig9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/libghostty-vt/pkg/harfbuzz/build.zig b/vendor/libghostty-vt/pkg/harfbuzz/build.zig
index 6d8f3be7..b482bc8a 100644
--- a/vendor/libghostty-vt/pkg/harfbuzz/build.zig
+++ b/vendor/libghostty-vt/pkg/harfbuzz/build.zig
@@ -123,6 +123,15 @@ fn buildLib(b: *std.Build, module: *std.Build.Module, options: anytype) !*std.Bu
try flags.appendSlice(b.allocator, &.{
"-DHAVE_STDBOOL_H",
});
+ // Disable ubsan for MSVC: Zig's ubsan runtime cannot be bundled
+ // on Windows (LNK4229), leaving __ubsan_handle_* unresolved when
+ // the static archive is consumed by an external linker.
+ if (target.result.abi == .msvc) {
+ try flags.appendSlice(b.allocator, &.{
+ "-fno-sanitize=undefined",
+ "-fno-sanitize-trap=undefined",
+ });
+ }
if (target.result.os.tag != .windows) {
try flags.appendSlice(b.allocator, &.{
"-DHAVE_UNISTD_H",