authorgravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2024-12-27 01:13:15-08:00
committergravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2025-02-25 11:22:33-08:00
log9432a9b6e1d2bd340afac6b29e49f1094cf1ba93
tree501ca60abc2869aca695c174c761ea6d85a3d2f3
parentd669b9520b85aa5e892fe073b2c485f1bf1afef5

build: add `bundle_ubsan_rt`


1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/Build/Step/Compile.zig+2
...@@ -40,6 +40,7 @@ compress_debug_sections: enum { none, zlib, zstd } = .none,...@@ -40,6 +40,7 @@ compress_debug_sections: enum { none, zlib, zstd } = .none,
40verbose_link: bool,40verbose_link: bool,
41verbose_cc: bool,41verbose_cc: bool,
42bundle_compiler_rt: ?bool = null,42bundle_compiler_rt: ?bool = null,
43bundle_ubsan_rt: ?bool = null,
43rdynamic: bool,44rdynamic: bool,
44import_memory: bool = false,45import_memory: bool = false,
45export_memory: bool = false,46export_memory: bool = false,
...@@ -1563,6 +1564,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {...@@ -1563,6 +1564,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 {
1563 }1564 }
15641565
1565 try addFlag(&zig_args, "compiler-rt", compile.bundle_compiler_rt);1566 try addFlag(&zig_args, "compiler-rt", compile.bundle_compiler_rt);
1567 try addFlag(&zig_args, "ubsan-rt", compile.bundle_ubsan_rt);
1566 try addFlag(&zig_args, "dll-export-fns", compile.dll_export_fns);1568 try addFlag(&zig_args, "dll-export-fns", compile.dll_export_fns);
1567 if (compile.rdynamic) {1569 if (compile.rdynamic) {
1568 try zig_args.append("-rdynamic");1570 try zig_args.append("-rdynamic");