Small performance improvements

This commit is contained in:
Simon Gellis 2024-11-14 21:02:56 -05:00
parent d306f19297
commit d300543407
1 changed files with 3 additions and 0 deletions

View File

@ -6,6 +6,9 @@ fn main() {
.include(Path::new("shrooms-vb-core/core")) .include(Path::new("shrooms-vb-core/core"))
.opt_level(2) .opt_level(2)
.flag_if_supported("-fno-strict-aliasing") .flag_if_supported("-fno-strict-aliasing")
.define("VB_LITTLE_ENDIAN", None)
.define("VB_SIGNED_PROPAGATE", None)
.define("VB_DIV_GENERIC", None)
.file(Path::new("shrooms-vb-core/core/vb.c")) .file(Path::new("shrooms-vb-core/core/vb.c"))
.compile("vb"); .compile("vb");
} }