fix(build): disable UBsan alignment checks when building with zig

This commit is contained in:
phaneron 2024-06-28 20:26:05 -04:00
parent dcb7a776af
commit 0293319368

View file

@ -34,7 +34,9 @@ pub fn build(b: *std.Build) void {
common.addIncludePath(b.path("."));
const common_compiler_flags = [_][]const u8 {
"-std=c++11"
"-std=c++11",
// Disable UBsan alignment checks (causes problems when writing to unaligned memory in CDataStore)
"-fno-sanitize=alignment"
};
const common_sources = [_][]const u8 {