mirror of
https://github.com/thunderbrewhq/common.git
synced 2025-12-12 03:02:29 +00:00
fix(build): disable UBsan alignment checks when building with zig
This commit is contained in:
parent
dcb7a776af
commit
0293319368
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue