aboutsummaryrefslogtreecommitdiff
path: root/mlir/test/mlir-cpu-runner/CMakeLists.txt
diff options
context:
space:
mode:
authorKern Handa <kern.handa@gmail.com>2020-01-09 22:55:31 +0100
committerAlex Zinenko <zinenko@google.com>2020-01-09 22:55:46 +0100
commitea67737b166fc6cb5fd98874fbd2b4639b2d7ecd (patch)
tree8d0c29f4d127f0098c1d89675ca3bf6938ae6d92 /mlir/test/mlir-cpu-runner/CMakeLists.txt
parent8c387cbea76b169f1f8ecc7693797e96567ed896 (diff)
downloadllvm-ea67737b166fc6cb5fd98874fbd2b4639b2d7ecd.zip
llvm-ea67737b166fc6cb5fd98874fbd2b4639b2d7ecd.tar.gz
llvm-ea67737b166fc6cb5fd98874fbd2b4639b2d7ecd.tar.bz2
[mlir] mlir-cpu-runner test's cblas_interface should export functions on Windows
This change fixes the build on Windows, so that cblas_interface.dll exports functions correctly and an implib is created and installed correctly. Currently, LLVM cannot be consumed on Windows after it has been installed in a location because cblas_interface.lib is not created/installed, thus failing the import check in `LLVMExports.cmake`. Differential Revision: https://reviews.llvm.org/D72384
Diffstat (limited to 'mlir/test/mlir-cpu-runner/CMakeLists.txt')
-rw-r--r--mlir/test/mlir-cpu-runner/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/mlir-cpu-runner/CMakeLists.txt b/mlir/test/mlir-cpu-runner/CMakeLists.txt
index 94f50a4..13aaa89 100644
--- a/mlir/test/mlir-cpu-runner/CMakeLists.txt
+++ b/mlir/test/mlir-cpu-runner/CMakeLists.txt
@@ -9,7 +9,7 @@ target_compile_definitions(cblas PRIVATE cblas_EXPORTS)
add_llvm_library(cblas_interface SHARED cblas_interface.cpp)
target_link_libraries(cblas_interface PRIVATE cblas)
+target_compile_definitions(cblas_interface PRIVATE cblas_interface_EXPORTS)
add_llvm_library(mlir_runner_utils SHARED mlir_runner_utils.cpp)
target_compile_definitions(mlir_runner_utils PRIVATE mlir_runner_utils_EXPORTS)
-