mirror of
https://github.com/ziglang/zig.git
synced 2025-12-25 15:43:06 +00:00
libcxx: pass -faligned-allocation flag when needed
libc++ now requires this flag
This commit is contained in:
parent
acb0a87158
commit
f317acb2cd
@ -148,6 +148,12 @@ pub fn buildLibCXX(comp: *Compilation) !void {
|
||||
try cflags.append("-fno-exceptions");
|
||||
}
|
||||
|
||||
if (target.os.tag == .zos) {
|
||||
try cflags.append("-fno-aligned-allocation");
|
||||
} else {
|
||||
try cflags.append("-faligned-allocation");
|
||||
}
|
||||
|
||||
try cflags.append("-I");
|
||||
try cflags.append(cxx_include_path);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user