| ... | @@ -1347,7 +1347,8 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil | ... | @@ -1347,7 +1347,8 @@ pub fn create(gpa: Allocator, arena: Allocator, options: CreateOptions) !*Compil |
| 1347 | // approach, since the ubsan runtime uses quite a lot of the standard library | 1347 | // approach, since the ubsan runtime uses quite a lot of the standard library |
| 1348 | // and this reduces unnecessary bloat. | 1348 | // and this reduces unnecessary bloat. |
| 1349 | const ubsan_rt_strat: RtStrat = s: { | 1349 | const ubsan_rt_strat: RtStrat = s: { |
| 1350 | const want_ubsan_rt = options.want_ubsan_rt orelse (any_sanitize_c and is_exe_or_dyn_lib); | 1350 | const is_spirv = options.root_mod.resolved_target.result.cpu.arch.isSpirV(); |
| | 1351 | const want_ubsan_rt = options.want_ubsan_rt orelse (!is_spirv and any_sanitize_c and is_exe_or_dyn_lib); |
| 1351 | if (!want_ubsan_rt) break :s .none; | 1352 | if (!want_ubsan_rt) break :s .none; |
| 1352 | if (options.skip_linker_dependencies) break :s .none; | 1353 | if (options.skip_linker_dependencies) break :s .none; |
| 1353 | if (have_zcu) break :s .zcu; | 1354 | if (have_zcu) break :s .zcu; |