build: don't forget the C++ object in the static libs to bundle

This commit is contained in:
Mitchell Hashimoto
2026-04-24 11:07:33 -07:00
parent 19ea5d4602
commit fc1d160668

View File

@@ -937,6 +937,7 @@ pub fn addSimd(
// archives above so the no-libc VT link stays free of transitive C++
// runtime metadata.
m.addObjectFile(simd_cpp.getEmittedBin());
if (static_libs) |v| try v.append(b.allocator, simd_cpp.getEmittedBin());
} else {
m.addIncludePath(b.path("src"));
m.addCSourceFiles(.{