@@ -309,8 +309,8 @@ pub fn build(b: *std.Build) !void {
309
309
if (ptr_bit_width == 32 ) "-m32" else "-m64" ,
310
310
"-Wall" ,
311
311
"-Wextra" ,
312
- "-fsanitize =undefined" ,
313
- "-fsanitize -trap=undefined" ,
312
+ "-fno-sanitize =undefined" ,
313
+ "-fno-sanitize -trap=undefined" ,
314
314
},
315
315
});
316
316
socketfuzz_lib .addIncludePath (AFLplusplus_inc_path );
@@ -335,8 +335,8 @@ pub fn build(b: *std.Build) !void {
335
335
if (ptr_bit_width == 32 ) "-m32" else "-m64" ,
336
336
"-Wall" ,
337
337
"-Wextra" ,
338
- "-fsanitize =undefined" ,
339
- "-fsanitize -trap=undefined" ,
338
+ "-fno-sanitize =undefined" ,
339
+ "-fno-sanitize -trap=undefined" ,
340
340
},
341
341
});
342
342
argvfuzz_lib .addIncludePath (AFLplusplus_inc_path );
@@ -628,8 +628,8 @@ const EXE_FLAGS = .{
628
628
"-Wno-pointer-sign" ,
629
629
"-Wno-pointer-arith" ,
630
630
"-Wno-variadic-macros" ,
631
- "-fsanitize =undefined" ,
632
- "-fsanitize -trap=undefined" ,
631
+ "-fno-sanitize =undefined" ,
632
+ "-fno-sanitize -trap=undefined" ,
633
633
"-DDOC_PATH=\"\" " ,
634
634
"-D_AFL_SPECIAL_PERFORMANCE" ,
635
635
};
@@ -645,8 +645,8 @@ const LLVM_EXE_C_FLAGS = .{
645
645
"-Wno-unused-result" ,
646
646
"-Wno-unused-function" ,
647
647
"-Wno-variadic-macros" ,
648
- "-fsanitize =undefined" ,
649
- "-fsanitize -trap=undefined" ,
648
+ "-fno-sanitize =undefined" ,
649
+ "-fno-sanitize -trap=undefined" ,
650
650
"-Wno-deprecated-copy-with-dtor" ,
651
651
"-DUSE_BINDIR=1" ,
652
652
"-DAFL_REAL_LD=\" lld\" " ,
@@ -689,7 +689,7 @@ const UTIL_LIB_FLAGS = .{
689
689
"-funroll-loops" ,
690
690
"-Wall" ,
691
691
"-Wno-pointer-sign" ,
692
- "-fsanitize =undefined" ,
693
- "-fsanitize -trap=undefined" ,
692
+ "-fno-sanitize =undefined" ,
693
+ "-fno-sanitize -trap=undefined" ,
694
694
"-D_FORTIFY_SOURCE=2" ,
695
695
};
0 commit comments