diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-11-26 02:22:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-26 02:22:51 -0500 |
| commit | 7103088e4a51d4362e6665d5949a9677e18fb74a (patch) | |
| tree | 858c52055896b6d6085b3810b6263eed3bafae0a /src/Compilation.zig | |
| parent | 2ff707be789046a733d0d23c6fe42dd2b7210396 (diff) | |
| parent | 74010fecc7bbeaf9de77c28dda5906c3c1f4a6df (diff) | |
| download | zig-7103088e4a51d4362e6665d5949a9677e18fb74a.tar.gz zig-7103088e4a51d4362e6665d5949a9677e18fb74a.zip | |
Merge pull request #18105 from Vexu/translate-c
Use Aro's tokenizer in `translate-c`
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 7fa1adf528..1beeaa36d4 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -4205,7 +4205,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(); |
