From 9432a9b6e1d2bd340afac6b29e49f1094cf1ba93 Mon Sep 17 00:00:00 2001 From: David Rubin Date: Fri, 27 Dec 2024 01:13:15 -0800 Subject: [PATCH] build: add `bundle_ubsan_rt` --- lib/std/Build/Step/Compile.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 65030fde32..616e8f76b4 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -40,6 +40,7 @@ compress_debug_sections: enum { none, zlib, zstd } = .none, verbose_link: bool, verbose_cc: bool, bundle_compiler_rt: ?bool = null, +bundle_ubsan_rt: ?bool = null, rdynamic: bool, import_memory: bool = false, export_memory: bool = false, @@ -1563,6 +1564,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 { } try addFlag(&zig_args, "compiler-rt", compile.bundle_compiler_rt); + try addFlag(&zig_args, "ubsan-rt", compile.bundle_ubsan_rt); try addFlag(&zig_args, "dll-export-fns", compile.dll_export_fns); if (compile.rdynamic) { try zig_args.append("-rdynamic");