authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-02 16:09:59-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2023-06-10 20:47:59-07:00
log7c12e064c4e6cd7ea2243a665984e5c49bc94229
tree9f2a07da4eb41d84555990d5f0c099a36e5af9d0
parente23b0a01e6357252eb2c08a83eff9169ce49042c

Sema: reword compile error about LLVM extensions and C import


1 files changed, 1 insertions(+), 1 deletions(-)

src/Sema.zig+1-1
...@@ -5451,7 +5451,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr...@@ -5451,7 +5451,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
54515451
5452 // we check this here to avoid undefined symbols5452 // we check this here to avoid undefined symbols
5453 if (!@import("build_options").have_llvm)5453 if (!@import("build_options").have_llvm)
5454 return sema.fail(parent_block, src, "cannot do C import on Zig compiler not built with LLVM-extension", .{});5454 return sema.fail(parent_block, src, "C import unavailable; Zig compiler built without LLVM extensions", .{});
54555455
5456 var c_import_buf = std.ArrayList(u8).init(sema.gpa);5456 var c_import_buf = std.ArrayList(u8).init(sema.gpa);
5457 defer c_import_buf.deinit();5457 defer c_import_buf.deinit();