From 2cbeb85a96af25f2718a604aa2bec4f76dd85018 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 21 Dec 2021 18:20:33 -0700 Subject: stage2: error check for mixing --import-table and --export-table is moved from the linker to the frontend. This is a follow-up from 4cb2f11693b1bf13770b8ad6a8b8a1e37101a516. --- src/main.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index effcef40d9..3f2dbd0cc7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -2543,6 +2543,9 @@ fn buildOutputType( } process.exit(1); }, + error.ExportTableAndImportTableConflict => { + fatal("--import-table and --export-table may not be used together", .{}); + }, else => fatal("unable to create compilation: {s}", .{@errorName(err)}), }; var comp_destroyed = false; -- cgit v1.2.3