[lli] Fix -DBUILD_SHARED_LIBS=on build

This fixes:

  ld.lld: error: undefined symbol: vtable for llvm::orc::rpc::ResponseAbandoned
  >>> referenced by lli.cpp

In -DBUILD_SHARED_LIBS=on builds, all directly referenced references must
be linked to appease -Wl,-z,defs.
This commit is contained in:
Fangrui Song 2019-10-29 22:37:28 -07:00
parent 05d7b20b14
commit 75e150df0b

View File

@ -11,6 +11,7 @@ set(LLVM_LINK_COMPONENTS
MC
MCJIT
Object
OrcError
OrcJIT
Passes
RuntimeDyld