[all-commits] [llvm/llvm-project] 15a347: [polly][unittests] Link DeLICMTests with libLLVMCore

rorth via All-commits all-commits at lists.llvm.org
Fri Jan 28 12:59:19 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 15a3476f3f9462a3f9f057ec626e7eaee829ed2c
      https://github.com/llvm/llvm-project/commit/15a3476f3f9462a3f9f057ec626e7eaee829ed2c
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M polly/unittests/DeLICM/CMakeLists.txt

  Log Message:
  -----------
  [polly][unittests] Link DeLICMTests with libLLVMCore

A `-DBUILD_SHARED_LIBS=ON` build on Solaris/amd64 failed with

  Undefined                       first referenced
   symbol                             in file
  _ZNK4llvm3cfg6UpdateIPNS_10BasicBlockEE4dumpEv tools/polly/unittests/DeLICM/CMakeFiles/DeLICMTests.dir/DeLICMTest.cpp.o  (symbol belongs to implicit dependency /var/llvm/local-amd64-release-stage2-shared-A/bin/../lib/libLLVMCore.so.14git)
  ld: fatal: symbol referencing errors

Solaris `ld` requires to directly link with dependant libraries, so this
patch explicitly adds `libLLVMCore`.

Tested on `amd64-pc-solaris2.11` and `x86_64-pc-linux-gnu`.

Differential Revision: https://reviews.llvm.org/D118452




More information about the All-commits mailing list