| ... | @@ -89,6 +89,7 @@ const RangeSet = @import("RangeSet.zig"); | ... | @@ -89,6 +89,7 @@ const RangeSet = @import("RangeSet.zig"); |
| 89 | const target_util = @import("target.zig"); | 89 | const target_util = @import("target.zig"); |
| 90 | const Package = @import("Package.zig"); | 90 | const Package = @import("Package.zig"); |
| 91 | const crash_report = @import("crash_report.zig"); | 91 | const crash_report = @import("crash_report.zig"); |
| | 92 | const build_options = @import("build_options"); |
| 92 | | 93 | |
| 93 | pub const InstMap = std.AutoHashMapUnmanaged(Zir.Inst.Index, Air.Inst.Ref); | 94 | pub const InstMap = std.AutoHashMapUnmanaged(Zir.Inst.Index, Air.Inst.Ref); |
| 94 | | 95 | |
| ... | @@ -20808,6 +20809,9 @@ pub fn resolveTypeLayout( | ... | @@ -20808,6 +20809,9 @@ pub fn resolveTypeLayout( |
| 20808 | src: LazySrcLoc, | 20809 | src: LazySrcLoc, |
| 20809 | ty: Type, | 20810 | ty: Type, |
| 20810 | ) CompileError!void { | 20811 | ) CompileError!void { |
| | 20812 | if (build_options.omit_stage2) |
| | 20813 | @panic("sadly stage2 is omitted from this build to save memory on the CI server"); |
| | 20814 | |
| 20811 | switch (ty.zigTypeTag()) { | 20815 | switch (ty.zigTypeTag()) { |
| 20812 | .Struct => return sema.resolveStructLayout(block, src, ty), | 20816 | .Struct => return sema.resolveStructLayout(block, src, ty), |
| 20813 | .Union => return sema.resolveUnionLayout(block, src, ty), | 20817 | .Union => return sema.resolveUnionLayout(block, src, ty), |
| ... | @@ -20974,6 +20978,8 @@ fn resolveUnionFully( | ... | @@ -20974,6 +20978,8 @@ fn resolveUnionFully( |
| 20974 | } | 20978 | } |
| 20975 | | 20979 | |
| 20976 | pub fn resolveTypeFields(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!Type { | 20980 | pub fn resolveTypeFields(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!Type { |
| | 20981 | if (build_options.omit_stage2) |
| | 20982 | @panic("sadly stage2 is omitted from this build to save memory on the CI server"); |
| 20977 | switch (ty.tag()) { | 20983 | switch (ty.tag()) { |
| 20978 | .@"struct" => { | 20984 | .@"struct" => { |
| 20979 | const struct_obj = ty.castTag(.@"struct").?.data; | 20985 | const struct_obj = ty.castTag(.@"struct").?.data; |
| ... | @@ -22256,6 +22262,8 @@ fn typePtrOrOptionalPtrTy( | ... | @@ -22256,6 +22262,8 @@ fn typePtrOrOptionalPtrTy( |
| 22256 | /// TODO merge these implementations together with the "advanced"/sema_kit pattern seen | 22262 | /// TODO merge these implementations together with the "advanced"/sema_kit pattern seen |
| 22257 | /// elsewhere in value.zig | 22263 | /// elsewhere in value.zig |
| 22258 | pub fn typeRequiresComptime(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!bool { | 22264 | pub fn typeRequiresComptime(sema: *Sema, block: *Block, src: LazySrcLoc, ty: Type) CompileError!bool { |
| | 22265 | if (build_options.omit_stage2) |
| | 22266 | @panic("sadly stage2 is omitted from this build to save memory on the CI server"); |
| 22259 | return switch (ty.tag()) { | 22267 | return switch (ty.tag()) { |
| 22260 | .u1, | 22268 | .u1, |
| 22261 | .u8, | 22269 | .u8, |