mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 16:48:04 +03:00
[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:
parent
369e8a19c5
commit
7ebd071273
@ -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")) {
|
||||
|
Loading…
Reference in New Issue
Block a user