[all-commits] [llvm/llvm-project] df2efd: Fix MLIR build with MLIR_INCLUDE_TESTS=OFF

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Aug 26 21:04:40 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: df2efd770047ad75af7805e72dd853ae9510a27b
      https://github.com/llvm/llvm-project/commit/df2efd770047ad75af7805e72dd853ae9510a27b
  Author: Ni Hui <shuizhuyuanluo at gmail.com>
  Date:   2020-08-27 (Thu, 27 Aug 2020)

  Changed paths:
    M mlir/tools/mlir-opt/mlir-opt.cpp

  Log Message:
  -----------
  Fix MLIR build with MLIR_INCLUDE_TESTS=OFF

error message

/usr/bin/ld: CMakeFiles/mlir-opt.dir/mlir-opt.cpp.o: in function `main':
mlir-opt.cpp:(.text.startup.main+0xb9): undefined reference to `mlir::registerTestDialect(mlir::DialectRegistry&)'

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list