diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-09-11 22:57:39 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-09-11 22:59:40 -0400 |
| commit | ff0b7fe29a49a5619b3c2f7fee0baccb979caf2d (patch) | |
| tree | bd108b5c7de008bd3014650c80282c3a7ed45aee /src/analyze.cpp | |
| parent | 014cc60a72ac2d64935bf424459b5fa13e281ed9 (diff) | |
| download | zig-ff0b7fe29a49a5619b3c2f7fee0baccb979caf2d.tar.gz zig-ff0b7fe29a49a5619b3c2f7fee0baccb979caf2d.zip | |
error messages for attempted cache when zig cannot perfectly do it
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index bae4b15f81..59be76518b 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -6289,6 +6289,12 @@ LinkLib *add_link_lib(CodeGen *g, Buf *name) { if (is_libc && g->libc_link_lib != nullptr) return g->libc_link_lib; + if (g->enable_cache && is_libc && g->zig_target.os != OsMacOSX && g->zig_target.os != OsIOS) { + fprintf(stderr, "TODO linking against libc is currently incompatible with `--cache on`.\n" + "Zig is not yet capable of determining whether the libc installation has changed on subsequent builds.\n"); + exit(1); + } + for (size_t i = 0; i < g->link_libs_list.length; i += 1) { LinkLib *existing_lib = g->link_libs_list.at(i); if (buf_eql_buf(existing_lib->name, name)) { |
