diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-02-25 14:11:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-25 14:11:54 -0500 |
| commit | 6003b1ea7018fe6a7aa87622d1178e444e6d8abb (patch) | |
| tree | f87768be86d630511e694ebd09173057c7b88a58 /src/ir.cpp | |
| parent | e5d4862e145c38ffc1111ee578ddcafc1e35ad57 (diff) | |
| parent | 0d4db8828a9efc05b5c3622098a8337de0b62d1e (diff) | |
| download | zig-6003b1ea7018fe6a7aa87622d1178e444e6d8abb.tar.gz zig-6003b1ea7018fe6a7aa87622d1178e444e6d8abb.zip | |
Merge pull request #2005 from ziglang/c-source
first class support for compiling C code
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index ea2fcb289f..929f195586 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -18670,12 +18670,6 @@ static IrInstruction *ir_analyze_instruction_type_name(IrAnalyze *ira, IrInstruc } static IrInstruction *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->invalid_instruction; - } - AstNode *node = instruction->base.source_node; assert(node->type == NodeTypeFnCallExpr); AstNode *block_node = node->data.fn_call_expr.params.at(0); |
