model3d: disable UBSan alignment sanitization on m3d_load
Works around: https://gitlab.com/bztsrc/model3d/-/issues/19 Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
caafb26fe4
commit
917b0eb8be
2 changed files with 2 additions and 1 deletions
|
|
@ -23,7 +23,7 @@ pub fn testStep(b: *std.build.Builder, mode: std.builtin.Mode, target: std.zig.C
|
|||
|
||||
pub fn link(b: *std.build.Builder, step: *std.build.LibExeObjStep) void {
|
||||
const lib = b.addStaticLibrarySource("model3d", null);
|
||||
lib.addCSourceFile(sdkPath("/src/c/m3d.c"), &.{ "-std=c89", "-DM3D_ASCII" });
|
||||
lib.addCSourceFile(sdkPath("/src/c/m3d.c"), &.{ "-std=c89" });
|
||||
lib.linkLibC();
|
||||
step.addIncludePath(sdkPath("/src/c/"));
|
||||
step.linkLibrary(lib);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue