summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-10-29 22:37:28 -0700
committerFangrui Song <maskray@google.com>2019-10-29 22:41:35 -0700
commit0c5bcd1b59828cd09c1a105e077bd6e8aff9ac51 (patch)
tree85f0c280f5abc70d39fcf20d710f8c8f51e0a87f
parent8d24d72f7f8b7a111f96510fc6d62b05bfb7dbec (diff)
downloadbcm5719-llvm-0c5bcd1b59828cd09c1a105e077bd6e8aff9ac51.tar.gz
bcm5719-llvm-0c5bcd1b59828cd09c1a105e077bd6e8aff9ac51.zip
[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.
-rw-r--r--llvm/tools/lli/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/lli/CMakeLists.txt b/llvm/tools/lli/CMakeLists.txt
index 476c09229e6..db163ad131e 100644
--- a/llvm/tools/lli/CMakeLists.txt
+++ b/llvm/tools/lli/CMakeLists.txt
@@ -11,6 +11,7 @@ set(LLVM_LINK_COMPONENTS
MC
MCJIT
Object
+ OrcError
OrcJIT
Passes
RuntimeDyld
OpenPOWER on IntegriCloud