Skip to content

Commit 2f2954d

Browse files
committed
no sanitize
1 parent f3a532e commit 2f2954d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build.zig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,10 @@ pub fn build(b: *std.Build) void {
136136
expat.root_module.addCSourceFiles(.{
137137
.files = sources,
138138
.root = upstream.path("expat"),
139-
.flags = if (need_short_char_arg) &.{ "-std=c99", "-fshort-wchar" } else &.{"-std=c99"},
139+
.flags = if (need_short_char_arg)
140+
&.{ "-std=c99", "-fno-sanitize=undefined", "-fshort-wchar" }
141+
else
142+
&.{ "-std=c99", "-fno-sanitize=undefined" },
140143
});
141144

142145
const xmlwf = b.addExecutable(.{

0 commit comments

Comments
 (0)