Skip to content

Commit

Permalink
examples/zig: turn off UBSAN
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ivan-Velickovic committed Nov 13, 2023
1 parent a243ade commit 0083680
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/zig/build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
});

Expand Down

0 comments on commit 0083680

Please sign in to comment.