[lld] wasm-ld: Add allow-multiple-definition flag (PR #97699)
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 09:14:52 PDT 2024
================
@@ -467,6 +467,9 @@ getBuildId(opt::InputArgList &args) {
// Initializes Config members by the command line options.
static void readConfigs(opt::InputArgList &args) {
+ config->allowMultipleDefinition =
+ args.hasFlag(OPT_allow_multiple_definition,
+ OPT_no_allow_multiple_definition, false);
----------------
sbc100 wrote:
It looks like ELF also allows the -z form of this option:
```
config->allowMultipleDefinition =
hasZOption(args, "muldefs") ||
args.hasFlag(OPT_allow_multiple_definition,
OPT_no_allow_multiple_definition, false);
```
Maybe we should do that same, for parity?
https://github.com/llvm/llvm-project/pull/97699
More information about the llvm-commits
mailing list