From 74010fecc7bbeaf9de77c28dda5906c3c1f4a6df Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Fri, 24 Nov 2023 20:11:11 +0200 Subject: translate-c: use Aro's tokenizer --- src/Compilation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Compilation.zig') diff --git a/src/Compilation.zig b/src/Compilation.zig index 4917f40b29..380e7f7b57 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4194,7 +4194,7 @@ pub const CImportResult = struct { /// This API is currently coupled pretty tightly to stage1's needs; it will need to be reworked /// a bit when we want to start using it from self-hosted. pub fn cImport(comp: *Compilation, c_src: []const u8) !CImportResult { - if (build_options.only_c) unreachable; // @cImport is not needed for bootstrapping + if (build_options.only_core_functionality) @panic("@cImport is not available in a zig2.c build"); const tracy_trace = trace(@src()); defer tracy_trace.end(); -- cgit v1.2.3