Skip to content

Commit

Permalink
Revert "move to stage2 (#781)" (#783)
Browse files Browse the repository at this point in the history
This reverts commit 29679ee.
  • Loading branch information
SuperAuguste authored Nov 26, 2022
1 parent aa14772 commit 369b851
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/language_features/comptime_interpreter.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 369b851

Please sign in to comment.