[all-commits] [llvm/llvm-project] e6f3ec: Don't link any LLVM/MLIR library to the C API unit...
Mehdi Amini via All-commits
all-commits at lists.llvm.org
Fri Nov 6 17:55:08 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: e6f3ec6ebb2ec4d7499b374514f4ecad9adb903f
https://github.com/llvm/llvm-project/commit/e6f3ec6ebb2ec4d7499b374514f4ecad9adb903f
Author: Mehdi Amini <joker.eph at gmail.com>
Date: 2020-11-07 (Sat, 07 Nov 2020)
Changed paths:
M mlir/test/CAPI/CMakeLists.txt
Log Message:
-----------
Don't link any LLVM/MLIR library to the C API unit-test
The tests are intended to exercise the public C API and will link to a
specific shared library exposing only the C API, this library itself may
link to libMLIR.so.
If we link some LLVM library statically in the test themselves, we end
up with duplicated cl::opt registrations in LLVM. A possible setup if
these libraries were needed could be to link libMLIR.so directly when
available and link statically when it isn't available (in which case the
libary exposing the C API would be statically link and isolated from the
cl::opt registry, hopefully).
Differential Revision: https://reviews.llvm.org/D90993
More information about the All-commits
mailing list