From dcfe11a7588fcd42471159453810abc9b7720a57 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Thu, 7 May 2026 18:29:21 +0300 Subject: build: update libghostty-vt vendor vendor ghostty 063ac3e and remove the musl libc++ link workaround. expose the new selection formatter and hyperlink uri apis for follow-up rendering work. add manual artifact validation for static linux builds. --- vendor/libghostty-vt/pkg/afl++/build.zig | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vendor/libghostty-vt/pkg/afl++') diff --git a/vendor/libghostty-vt/pkg/afl++/build.zig b/vendor/libghostty-vt/pkg/afl++/build.zig index 9de3ad01..9f6f70e9 100644 --- a/vendor/libghostty-vt/pkg/afl++/build.zig +++ b/vendor/libghostty-vt/pkg/afl++/build.zig @@ -1,4 +1,5 @@ const std = @import("std"); +const builtin = @import("builtin"); /// Creates a build step that produces an AFL++-instrumented fuzzing /// executable. @@ -23,6 +24,12 @@ pub fn addInstrumentedExe( @panic("Could not find 'afl-cc', which is required to build"), "-O3", }); + if (builtin.target.os.tag.isDarwin()) { + // Apple's newer ld asserts on the custom section names emitted by + // AFL's LLVM instrumentation when linking our Zig-produced bitcode. + // lld links the same inputs without issue. + afl_cc.addArg("-fuse-ld=lld"); + } afl_cc.addArg("-o"); const fuzz_exe = afl_cc.addOutputFileArg(obj.name); afl_cc.addFileArg(pkg.path("afl.c")); -- cgit v1.2.3