diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-01-02 14:28:03 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-01-02 19:11:56 -0700 |
| commit | 50a530196ca4e91b387f9937475dd8891edb3f4f (patch) | |
| tree | c90e57e1484a4c6fed1ae7922f761a9bdd6e7970 /src/main.zig | |
| parent | 006e7f68056af62ae7713d7ef228841d11874735 (diff) | |
| download | zig-50a530196ca4e91b387f9937475dd8891edb3f4f.tar.gz zig-50a530196ca4e91b387f9937475dd8891edb3f4f.zip | |
stage2: fix handling compile error in inline fn call
* scopes properly inherit inlining information
* compile errors of inline function calls are properly attached to the
caller rather than the callee.
- added a test case for this
* --watch still opens a repl if compile errors happen.
Diffstat (limited to 'src/main.zig')
| -rw-r--r-- | src/main.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index b1243badff..7b0e3fad7f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1818,7 +1818,7 @@ fn buildOutputType( }; updateModule(gpa, comp, zir_out_path, hook) catch |err| switch (err) { - error.SemanticAnalyzeFail => process.exit(1), + error.SemanticAnalyzeFail => if (!watch) process.exit(1), else => |e| return e, }; try comp.makeBinFileExecutable(); |
