From e5854071df602f413fe3409912effbe88a45aeaa Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 24 Apr 2026 10:09:17 -0700 Subject: [PATCH] build: simplify libc/cpp linking --- src/build/GhosttyZig.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/build/GhosttyZig.zig b/src/build/GhosttyZig.zig index 80a089968..db74c4a19 100644 --- a/src/build/GhosttyZig.zig +++ b/src/build/GhosttyZig.zig @@ -123,7 +123,7 @@ fn initVt( // Vendored C++ dependencies are built with no-libcxx and // no-libc modes so we don't need libc or libcpp. System-provided // simdutf requires both libc and libcpp at runtime. - .link_libc = if (system_simdutf) true else if (cfg.emit_lib_vt) false else null, + .link_libc = if (system_simdutf) true else false, .link_libcpp = libcpp: { // MSVC is tightly coupled with the C++ standard library, so we // need to link it even if we don't use it directly. @@ -134,7 +134,7 @@ fn initVt( // it. if (system_simdutf) break :libcpp true; - break :libcpp if (cfg.emit_lib_vt) false else null; + break :libcpp false; }, }); vt.addOptions("build_options", general_options); @@ -151,7 +151,7 @@ fn initVt( b, vt, simd_libs, - if (cfg.emit_lib_vt) .no_libc else .libc, + .no_libc, ); return vt;