[ELF] Recognize --thinlto-{single-module,cache-dir,cache-policy}

They are defined as aliases for
--plugin-opt=thinlto-{single-module,cache-dir,cache-policy}.

https://github.com/rui314/mold/issues/336
This commit is contained in:
Rui Ueyama committed 2022-04-18 12:53:59 +08:00
1 parent 369e8a19c5
commit 7ebd071273
1 file changed
+6
+6
View File
@@ -868,6 +868,12 @@ void parse_nonpositional_args(Context<E> &ctx,
ctx.arg.plugin_opt.push_back("thinlto-object-suffix-replace=" + std::string(arg));
} else if (read_arg(ctx, args, arg, "thinlto-prefix-replace")) {
ctx.arg.plugin_opt.push_back("thinlto-prefix-replace=" + std::string(arg));
} else if (read_arg(ctx, args, arg, "thinlto-single-module")) {
ctx.arg.plugin_opt.push_back("thinlto-single-module=" + std::string(arg));
} else if (read_arg(ctx, args, arg, "thinlto-cache-dir")) {
ctx.arg.plugin_opt.push_back("thinlto-cache-dir=" + std::string(arg));
} else if (read_arg(ctx, args, arg, "thinlto-cache-policy")) {
ctx.arg.plugin_opt.push_back("thinlto-cache-policy=" + std::string(arg));
} else if (read_arg(ctx, args, arg, "thinlto-jobs")) {
ctx.arg.plugin_opt.push_back("jobs=" + std::string(arg));
} else if (read_arg(ctx, args, arg, "thread-count")) {