[Mlir-commits] [mlir] 27924b1 - [mlir] Remove mlir_c_runner_utils_static.
Christian Sigg
llvmlistbot at llvm.org
Fri Jan 29 06:04:57 PST 2021
Author: Christian Sigg
Date: 2021-01-29T15:04:48+01:00
New Revision: 27924b126329528024d5b3a5bf71a4f637de853a
URL: https://github.com/llvm/llvm-project/commit/27924b126329528024d5b3a5bf71a4f637de853a
DIFF: https://github.com/llvm/llvm-project/commit/27924b126329528024d5b3a5bf71a4f637de853a.diff
LOG: [mlir] Remove mlir_c_runner_utils_static.
The library is not actually static when BUILD_SHARED_LIBS is on, and tests need to explicitly load it already. Also, the shared objects it was linked to did not use any symbols from it and it was therefore never linked to it.
Reviewed By: ftynse
Differential Revision: https://reviews.llvm.org/D95612
Added:
Modified:
mlir/lib/ExecutionEngine/CMakeLists.txt
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/CMakeLists.txt b/mlir/lib/ExecutionEngine/CMakeLists.txt
index b8e486ca47db..d626e8c94b77 100644
--- a/mlir/lib/ExecutionEngine/CMakeLists.txt
+++ b/mlir/lib/ExecutionEngine/CMakeLists.txt
@@ -80,14 +80,6 @@ add_mlir_library(mlir_c_runner_utils
EXCLUDE_FROM_LIBMLIR
)
set_property(TARGET mlir_c_runner_utils PROPERTY CXX_STANDARD 11)
-
-add_mlir_library(mlir_c_runner_utils_static
- CRunnerUtils.cpp
- SparseUtils.cpp
-
- EXCLUDE_FROM_LIBMLIR
- )
-set_property(TARGET mlir_c_runner_utils_static PROPERTY CXX_STANDARD 11)
target_compile_definitions(mlir_c_runner_utils PRIVATE mlir_c_runner_utils_EXPORTS)
add_mlir_library(mlir_runner_utils
@@ -95,9 +87,6 @@ add_mlir_library(mlir_runner_utils
RunnerUtils.cpp
EXCLUDE_FROM_LIBMLIR
-
- LINK_LIBS PUBLIC
- mlir_c_runner_utils_static
)
target_compile_definitions(mlir_runner_utils PRIVATE mlir_runner_utils_EXPORTS)
@@ -108,7 +97,6 @@ add_mlir_library(mlir_async_runtime
EXCLUDE_FROM_LIBMLIR
LINK_LIBS PUBLIC
- mlir_c_runner_utils_static
${LLVM_PTHREAD_LIB}
)
set_property(TARGET mlir_async_runtime PROPERTY CXX_VISIBILITY_PRESET hidden)
More information about the Mlir-commits
mailing list