| ... | @@ -2601,7 +2601,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr | ... | @@ -2601,7 +2601,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr |
| 2601 | | 2601 | |
| 2602 | // we check this here to avoid undefined symbols | 2602 | // we check this here to avoid undefined symbols |
| 2603 | if (!@import("build_options").have_llvm) | 2603 | if (!@import("build_options").have_llvm) |
| 2604 | return sema.fail(&parent_block, src, "cannot do C import on Zig compiler not built with LLVM-extension", .{}); | 2604 | return sema.fail(parent_block, src, "cannot do C import on Zig compiler not built with LLVM-extension", .{}); |
| 2605 | | 2605 | |
| 2606 | var c_import_buf = std.ArrayList(u8).init(sema.gpa); | 2606 | var c_import_buf = std.ArrayList(u8).init(sema.gpa); |
| 2607 | defer c_import_buf.deinit(); | 2607 | defer c_import_buf.deinit(); |