From 369b851dc7c5f3c7d241fad0beb9b158590510c2 Mon Sep 17 00:00:00 2001 From: Auguste Rame <19855629+SuperAuguste@users.noreply.github.com> Date: Fri, 25 Nov 2022 19:18:32 -0500 Subject: [PATCH] Revert "move to stage2 (#781)" (#783) This reverts commit 29679ee6f8f9bb7ef64e0493b1a9dea88e338c94. --- build.zig | 2 ++ tests/language_features/comptime_interpreter.zig | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build.zig b/build.zig index 6cc9fd5..be88bfb 100644 --- a/build.zig +++ b/build.zig @@ -13,6 +13,7 @@ pub fn build(b: *std.build.Builder) !void { const mode = b.standardReleaseOptions(); const exe = b.addExecutable("zls", "src/main.zig"); + exe.use_stage1 = true; const exe_options = b.addOptions(); 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.setBuildMode(.Debug); tests.setTarget(target); diff --git a/tests/language_features/comptime_interpreter.zig b/tests/language_features/comptime_interpreter.zig index dd42a31..ae9311e 100644 --- a/tests/language_features/comptime_interpreter.zig +++ b/tests/language_features/comptime_interpreter.zig @@ -32,7 +32,7 @@ test "ComptimeInterpreter - basic test" { _ = 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{ .interpreter = &interpreter, .node_idx = std.math.maxInt(std.zig.Ast.Node.Index),