[PATCH] D99887: [lld][WebAssembly] Add `--export-if-defined`

Sam Clegg via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 5 16:15:49 PDT 2021


sbc100 added a comment.

In D99887#2669570 <https://reviews.llvm.org/D99887#2669570>, @dschuff wrote:

> Pre-existing, but what does `--export` plus `--allow-undefined` do?

`--allow-undefined` will not report errors on undefined symbols at all (even those passed via `--export`).  This is true both before and after this change.

One of the reasons for this change is that we would like one day to remove `--allow-undefined` from emscripten by default which exposes the current limitations of `--export`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99887/new/

https://reviews.llvm.org/D99887



More information about the llvm-commits mailing list