HomePhabricator

[MLIR] Fix linkage for libMLIR.so

Authored by stephenneuendorffer on May 16 2020, 11:01 PM.

Description

[MLIR] Fix linkage for libMLIR.so

Generally:

  1. don't use target_link_libraries() and add_mlir_library() on the same target, use LINK_LIBS PUBLIC instead.
  2. don't use LINK_LIBS to specify LLVM libraries. Use LINK_COMPONENTS instead
  3. no need to link against LLVMSupport. We pull it in by default.

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

Details

Committed
stephenneuendorfferMay 17 2020, 1:46 PM
Differential Revision
D80076: [MLIR] Fix linkage for libMLIR.so
Parents
rGf88c7fe46b37: [MLIR][cmake][NFC] Update linkage checker for mlir-opt
Branches
Unknown
Tags
Unknown