mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
build: add bundle_ubsan_rt
This commit is contained in:
parent
d669b9520b
commit
9432a9b6e1
@ -40,6 +40,7 @@ compress_debug_sections: enum { none, zlib, zstd } = .none,
|
|||||||
verbose_link: bool,
|
verbose_link: bool,
|
||||||
verbose_cc: bool,
|
verbose_cc: bool,
|
||||||
bundle_compiler_rt: ?bool = null,
|
bundle_compiler_rt: ?bool = null,
|
||||||
|
bundle_ubsan_rt: ?bool = null,
|
||||||
rdynamic: bool,
|
rdynamic: bool,
|
||||||
import_memory: bool = false,
|
import_memory: bool = false,
|
||||||
export_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, "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);
|
try addFlag(&zig_args, "dll-export-fns", compile.dll_export_fns);
|
||||||
if (compile.rdynamic) {
|
if (compile.rdynamic) {
|
||||||
try zig_args.append("-rdynamic");
|
try zig_args.append("-rdynamic");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user