bundle ubsan rt

This commit is contained in:
Mitchell Hashimoto
2025-03-12 11:07:10 -07:00
parent 601acf4059
commit 3116a1b92c

View File

@@ -22,9 +22,13 @@ pub fn initStatic(
.target = deps.config.target,
.optimize = deps.config.optimize,
});
lib.bundle_compiler_rt = true;
lib.linkLibC();
// These must be bundled since we're compiling into a static lib.
// Otherwise, you get undefined symbol errors.
lib.bundle_compiler_rt = true;
lib.bundle_ubsan_rt = true;
// Add our dependencies. Get the list of all static deps so we can
// build a combined archive if necessary.
var lib_list = try deps.add(lib);