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/ir.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/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 858a6df33c..030f6627ad 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -17961,6 +17961,12 @@ static ZigType *ir_analyze_instruction_type_name(IrAnalyze *ira, IrInstructionTy } static ZigType *ir_analyze_instruction_c_import(IrAnalyze *ira, IrInstructionCImport *instruction) { + if (ira->codegen->enable_cache) { + ir_add_error(ira, &instruction->base, + buf_sprintf("TODO @cImport is incompatible with --cache on. The cache system currently is unable to detect subsequent changes in .h files.")); + return ira->codegen->builtin_types.entry_invalid; + } + AstNode *node = instruction->base.source_node; assert(node->type == NodeTypeFnCallExpr); AstNode *block_node = node->data.fn_call_expr.params.at(0); |
