linkers: update references to "options" field

This commit is contained in:
Andrew Kelley
2023-12-12 16:25:28 -07:00
parent 3b6cb257df
commit 0789e91eeb
22 changed files with 511 additions and 429 deletions

View File

@@ -335,7 +335,7 @@ pub fn resolve(options: Options) !Config {
break :b .Static;
};
const import_memory = options.import_memory orelse false;
const import_memory = options.import_memory orelse (options.output_mode == .Obj);
const export_memory = b: {
if (link_mode == .Dynamic) {
if (options.export_memory == true) return error.ExportMemoryAndDynamicIncompatible;