[lld] wasm-ld: Add allow-multiple-definition flag (PR #97699)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 7 03:59:02 PDT 2024


Martin =?utf-8?q?=C5=BDukovec?= <martin.zukovec at xlab.si>,
Martin =?utf-8?q?=C5=BDukovec?= <martin.zukovec at xlab.si>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/97699 at github.com>


================
@@ -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);
----------------
mzukovec wrote:

`-z muldefs` added and tested same as ELF.

https://github.com/llvm/llvm-project/pull/97699


More information about the llvm-commits mailing list