| ... | @@ -148,6 +148,12 @@ pub fn buildLibCXX(comp: *Compilation) !void { | ... | @@ -148,6 +148,12 @@ pub fn buildLibCXX(comp: *Compilation) !void { |
| 148 | try cflags.append("-fno-exceptions"); | 148 | try cflags.append("-fno-exceptions"); |
| 149 | } | 149 | } |
| 150 | | 150 | |
| | 151 | if (target.os.tag == .zos) { |
| | 152 | try cflags.append("-fno-aligned-allocation"); |
| | 153 | } else { |
| | 154 | try cflags.append("-faligned-allocation"); |
| | 155 | } |
| | 156 | |
| 151 | try cflags.append("-I"); | 157 | try cflags.append("-I"); |
| 152 | try cflags.append(cxx_include_path); | 158 | try cflags.append(cxx_include_path); |
| 153 | | 159 | |