Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit ed13d69

Browse files
committed
[WebAssembly] Pass through --undefined to Wasm LLD
This is a follow-on to D40724 (Wasm entrypoint changes #1, add `--undefined` argument to LLD). Patch by Nicholas Wilson Differential Revision: https://reviews.llvm.org/D40739 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319623 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 5a0ab09 commit ed13d69

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Driver/ToolChains/WebAssembly.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ void wasm::Linker::ConstructJob(Compilation &C, const JobAction &JA,
4747
CmdArgs.push_back("--strip-all");
4848

4949
Args.AddAllArgs(CmdArgs, options::OPT_L);
50+
Args.AddAllArgs(CmdArgs, options::OPT_u);
5051
ToolChain.AddFilePathLibArgs(Args, CmdArgs);
5152

5253
if (!Args.hasArg(options::OPT_nostdlib, options::OPT_nostartfiles))

0 commit comments

Comments
 (0)