authorgravatar for david@vortan.devDavid Rubin <david@vortan.dev> 2026-10-08 10:23:58-05:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-10 09:07:28+02:00
log0e494a3345f1c635d5979571dd55a1c663992d97
tree00f1cebf0449684501e7ec7a11fcdbf405fd08c7
parent79d9121670ebb73937ef0bed6d6b8044fada8715

Compilation: turn off ubsan sanitization of functions in trap mode


1 files changed, 3 insertions(+), 0 deletions(-)

src/Compilation.zig+3
...@@ -6546,6 +6546,9 @@ fn addCommonCCArgs(...@@ -6546,6 +6546,9 @@ fn addCommonCCArgs(
6546 .off => {},6546 .off => {},
6547 .trap => {6547 .trap => {
6548 try argv.append("-fsanitize-trap=undefined");6548 try argv.append("-fsanitize-trap=undefined");
6549
6550 // Same reasoning as below.
6551 try argv.append("-fno-sanitize=function");
6549 },6552 },
6550 .full => {6553 .full => {
6551 // This check requires implementing the Itanium C++ ABI.6554 // This check requires implementing the Itanium C++ ABI.