CMake build: force-link SDBM lib into SDBM unit tests

Otherwise, GCC < 7 does not link in the dialect registration, fails to look up
    the dialect in the context and cannot construct SDBM objects.

--

PiperOrigin-RevId: 249259758
This commit is contained in:
Alex Zinenko 2019-05-21 08:56:38 -07:00 committed by Mehdi Amini
parent 3b500c694d
commit 6aae7b2e9a

View file

@ -5,3 +5,4 @@ target_link_libraries(MLIRSDBMTests
PRIVATE
MLIRSDBM
)
whole_archive_link(MLIRSDBMTests MLIRSDBM)