[all-commits] [llvm/llvm-project] 2e4ec3: unittests: Fix build with LLVM_LINK_LLVM_DYLIB=ON

Tom Stellard via All-commits all-commits at lists.llvm.org
Wed Jul 7 06:51:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e4ec3e5d6a3bf7f61bea6898286cba64be7b764
      https://github.com/llvm/llvm-project/commit/2e4ec3e5d6a3bf7f61bea6898286cba64be7b764
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2021-07-07 (Wed, 07 Jul 2021)

  Changed paths:
    M llvm/unittests/Passes/CMakeLists.txt

  Log Message:
  -----------
  unittests: Fix build with LLVM_LINK_LLVM_DYLIB=ON

The build system was linking the PluginsTests unittest against libLLVM.so
and LLVMAsmParser which was causing the test to fail with this error:

LLVM ERROR: inconsistency in registered CommandLine options

We need to add llvm libraries to LLVM_LINK_COMPONENTS so that
they are dropped from the linker arguments when linking with
LLVM_LINK_LLVM_DYLIB=ON

Reviewed By: aeubanks

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




More information about the All-commits mailing list