mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Sema: reword compile error about LLVM extensions and C import
This commit is contained in:
parent
e23b0a01e6
commit
7c12e064c4
@ -5451,7 +5451,7 @@ fn zirCImport(sema: *Sema, parent_block: *Block, inst: Zir.Inst.Index) CompileEr
|
||||
|
||||
// we check this here to avoid undefined symbols
|
||||
if (!@import("build_options").have_llvm)
|
||||
return sema.fail(parent_block, src, "cannot do C import on Zig compiler not built with LLVM-extension", .{});
|
||||
return sema.fail(parent_block, src, "C import unavailable; Zig compiler built without LLVM extensions", .{});
|
||||
|
||||
var c_import_buf = std.ArrayList(u8).init(sema.gpa);
|
||||
defer c_import_buf.deinit();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user