[PATCH] D41272: Don't try to run MCJIT/OrcJIT EH tests when C++ library is statically linked

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 14 20:46:19 PST 2017


phosek created this revision.
phosek added reviewers: grosbach, lhames, rafael, beanz, EricWF.
Herald added a subscriber: mgorny.

These tests assume availability of external symbols provided by the
C++ library, but those won't be available in case when the C++ library
is statically linked because lli itself doesn't need these.

      

This uses CMake to check if C++ library is linked as shared library and
exposes that information as a feature to lit.


Repository:
  rL LLVM

https://reviews.llvm.org/D41272

Files:
  cmake/modules/CheckCXXSharedLibrary.cmake
  test/CMakeLists.txt
  test/ExecutionEngine/MCJIT/eh-lg-pic.ll
  test/ExecutionEngine/MCJIT/eh.ll
  test/ExecutionEngine/MCJIT/multi-module-eh-a.ll
  test/ExecutionEngine/MCJIT/remote/eh.ll
  test/ExecutionEngine/OrcMCJIT/eh-lg-pic.ll
  test/ExecutionEngine/OrcMCJIT/eh.ll
  test/ExecutionEngine/OrcMCJIT/multi-module-eh-a.ll
  test/ExecutionEngine/OrcMCJIT/remote/eh.ll
  test/lit.cfg.py
  test/lit.site.cfg.py.in

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41272.127064.patch
Type: text/x-patch
Size: 8914 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171215/950e525d/attachment.bin>


More information about the llvm-commits mailing list