diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-09-18 22:48:28 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-09-18 22:48:28 -0700 |
| commit | 2ef68631cb7045c277b348777b1a064845b95cd8 (patch) | |
| tree | 00e1dca9b53a828a9926cf5b6d2a227dc939375a /src/analyze.cpp | |
| parent | 333b12a8f9beb5864fa05ce413c5b935e925ec14 (diff) | |
| download | zig-2ef68631cb7045c277b348777b1a064845b95cd8.tar.gz zig-2ef68631cb7045c277b348777b1a064845b95cd8.zip | |
stage2 now supports using stage1 as a backend for compiling zig code
* move stage2.cpp code into zig0.cpp for simplicity
* add -ftime-report and some more CLI options to stage2
* stage2 compites the llvm cpu features string
* classifyFileExt understands more file extensions
* correction to generateBuiltinZigSource using the wrong allocator
(thanks dbandstra!)
* stage2 is now able to build hello.zig into hello.o using stage1 as a
library however it fails linking due to missing compiler-rt
* remove dead code
* simplify zig0 builtin.zig source
* fix not resolving builtin.zig source path causing duplicate imports
* fix stage1.h not being valid C code
* fix stage2.h not being valid C code
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index ea19d81995..6c6f198e7a 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -7987,7 +7987,7 @@ Error file_fetch(CodeGen *g, Buf *resolved_path, Buf *contents_buf) { size_t len; const char *contents = stage2_fetch_file(&g->stage1, buf_ptr(resolved_path), buf_len(resolved_path), &len); if (contents == nullptr) - return ErrorNoMem; + return ErrorFileNotFound; buf_init_from_mem(contents_buf, contents, len); return ErrorNone; } |
