parent
							
								
									aa14772cfe
								
							
						
					
					
						commit
						369b851dc7
					
				| @ -13,6 +13,7 @@ pub fn build(b: *std.build.Builder) !void { | |||||||
| 
 | 
 | ||||||
|     const mode = b.standardReleaseOptions(); |     const mode = b.standardReleaseOptions(); | ||||||
|     const exe = b.addExecutable("zls", "src/main.zig"); |     const exe = b.addExecutable("zls", "src/main.zig"); | ||||||
|  |     exe.use_stage1 = true; | ||||||
|     const exe_options = b.addOptions(); |     const exe_options = b.addOptions(); | ||||||
|     exe.addOptions("build_options", exe_options); |     exe.addOptions("build_options", exe_options); | ||||||
| 
 | 
 | ||||||
| @ -133,6 +134,7 @@ pub fn build(b: *std.build.Builder) !void { | |||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     tests.use_stage1 = true; | ||||||
|     tests.addPackage(.{ .name = "zls", .source = .{ .path = "src/zls.zig" }, .dependencies = exe.packages.items }); |     tests.addPackage(.{ .name = "zls", .source = .{ .path = "src/zls.zig" }, .dependencies = exe.packages.items }); | ||||||
|     tests.setBuildMode(.Debug); |     tests.setBuildMode(.Debug); | ||||||
|     tests.setTarget(target); |     tests.setTarget(target); | ||||||
|  | |||||||
| @ -32,7 +32,7 @@ test "ComptimeInterpreter - basic test" { | |||||||
| 
 | 
 | ||||||
|     _ = try interpreter.interpret(0, null, .{}); |     _ = try interpreter.interpret(0, null, .{}); | ||||||
| 
 | 
 | ||||||
|     var bool_type = try interpreter.createType(std.math.maxInt(std.zig.Ast.Node.Index), .{ .@"bool" = {} }); |     var bool_type = try interpreter.createType(std.math.maxInt(std.zig.Ast.Node.Index), .{ .@"bool" = .{} }); | ||||||
|     var arg_false = ComptimeInterpreter.Value{ |     var arg_false = ComptimeInterpreter.Value{ | ||||||
|         .interpreter = &interpreter, |         .interpreter = &interpreter, | ||||||
|         .node_idx = std.math.maxInt(std.zig.Ast.Node.Index), |         .node_idx = std.math.maxInt(std.zig.Ast.Node.Index), | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user