| ... | @@ -40,6 +40,7 @@ compress_debug_sections: enum { none, zlib, zstd } = .none, | ... | @@ -40,6 +40,7 @@ compress_debug_sections: enum { none, zlib, zstd } = .none, |
| 40 | verbose_link: bool, | 40 | verbose_link: bool, |
| 41 | verbose_cc: bool, | 41 | verbose_cc: bool, |
| 42 | bundle_compiler_rt: ?bool = null, | 42 | bundle_compiler_rt: ?bool = null, |
| | 43 | bundle_ubsan_rt: ?bool = null, |
| 43 | rdynamic: bool, | 44 | rdynamic: bool, |
| 44 | import_memory: bool = false, | 45 | import_memory: bool = false, |
| 45 | export_memory: bool = false, | 46 | export_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 | } |
| 1564 | | 1565 | |
| 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"); |