From bbbf2f8224502a8e31cf6607b89e1dc617919b70 Mon Sep 17 00:00:00 2001 From: Ivan Velickovic Date: Mon, 13 Nov 2023 14:02:10 +1100 Subject: [PATCH] examples/zig: turn off UBSAN It's unclear whether we actually do have UB somewhere in the C code. For now we turn off UBSAN in order to have the example work in debug mode. --- examples/zig/build.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/zig/build.zig b/examples/zig/build.zig index 80b338a94..f4ef19c2c 100644 --- a/examples/zig/build.zig +++ b/examples/zig/build.zig @@ -88,7 +88,7 @@ pub fn build(b: *std.Build) void { "-Wno-unused-function", "-mstrict-align", "-DBOARD_qemu_arm_virt", // @ivanv: should not be necessary - // "-fno-sanitize=undefined", + "-fno-sanitize=undefined", // @ivanv: ideally we wouldn't have to turn off UBSAN } });