From 6aae7b2e9ade69b6060586c438931258173b73b8 Mon Sep 17 00:00:00 2001 From: Alex Zinenko Date: Tue, 21 May 2019 08:56:38 -0700 Subject: [PATCH] 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 --- mlir/unittests/SDBM/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/unittests/SDBM/CMakeLists.txt b/mlir/unittests/SDBM/CMakeLists.txt index d86f9dd..3d832ec 100644 --- a/mlir/unittests/SDBM/CMakeLists.txt +++ b/mlir/unittests/SDBM/CMakeLists.txt @@ -5,3 +5,4 @@ target_link_libraries(MLIRSDBMTests PRIVATE MLIRSDBM ) +whole_archive_link(MLIRSDBMTests MLIRSDBM) -- 2.7.4