aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/Compilation.zig')
-rw-r--r--src/Compilation.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig
index 7447d589fd..185a9a6260 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -3466,6 +3466,9 @@ fn processOneJob(comp: *Compilation, job: Job, prog_node: std.Progress.Node) !vo
};
},
.emit_h_decl => |decl_index| {
+ if (true) @panic("regressed compiler feature: emit-h should hook into updateExports, " ++
+ "not decl analysis, which is too early to know about @export calls");
+
const module = comp.module.?;
const decl = module.declPtr(decl_index);