move to stage2 (#781)

This commit is contained in:
Techatrix 2022-11-25 22:31:27 +01:00 committed by GitHub
parent 1ced17266c
commit 29679ee6f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -13,7 +13,6 @@ 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);
@ -134,7 +133,6 @@ 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);

View File

@ -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),