Skip to content

Commit

Permalink
build: add bundle_ubsan_rt
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexicon226 committed Jan 27, 2025
1 parent 229f6e3 commit 89da0d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/std/Build/Step/Compile.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -1548,6 +1549,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");
Expand Down

0 comments on commit 89da0d5

Please sign in to comment.