From 2d6520d5d4cd912cdd20db6cfa155e871efc6f59 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 26 Apr 2019 20:41:37 -0400 Subject: zig fmt is built directly into stage1 rather than child process Previously, `zig fmt` on the stage1 compiler (which is what we currently ship) would perform what equates to `zig run std/special/fmt_runner.zig` Now, `zig fmt` is implemented with the hybrid zig/C++ strategy outlined by #1964. This means Zig no longer has to ship some of the stage2 .zig files, and there is no longer a delay when running `zig fmt` for the first time. --- src/userland.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/userland.cpp') diff --git a/src/userland.cpp b/src/userland.cpp index fad1450f0d..20740711e5 100644 --- a/src/userland.cpp +++ b/src/userland.cpp @@ -37,3 +37,8 @@ void stage2_render_ast(struct Stage2Ast *ast, FILE *output_file) { const char *msg = "stage0 called stage2_render_ast"; stage2_panic(msg, strlen(msg)); } + +int stage2_fmt(int argc, char **argv) { + const char *msg = "stage0 called stage2_fmt"; + stage2_panic(msg, strlen(msg)); +} -- cgit v1.2.3