From 7c12e064c4e6cd7ea2243a665984e5c49bc94229 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Fri, 2 Jun 2023 16:09:59 -0700 Subject: [PATCH] Sema: reword compile error about LLVM extensions and C import --- src/Sema.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sema.zig b/src/Sema.zig index 4d9fc201a11e8115880f1faef9b4f4aabd6b232d..be354ff3500c857a1581c005a0fa4ff20abba1e7 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -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(); -- 2.54.0