[mlir] Hotfix - Fix Windows build
authorNicolas Vasilache <ntv@google.com>
Tue, 3 Mar 2020 03:47:16 +0000 (22:47 -0500)
committerNicolas Vasilache <ntv@google.com>
Tue, 3 Mar 2020 14:27:33 +0000 (09:27 -0500)
commit9a8f2965f623cbe8afeac5ce821ad8a2f899cee9
tree0930e5dbafffb9575073f1fe6ea78703bda8bf1d
parentf2cd0850789d8ee9257db2d87fbd2c40b3ad6a76
[mlir] Hotfix - Fix Windows build

This revision adds a static `mlir_c_runner_utils_static` library
for the sole purpose of being linked into `mlir_runner_utils` on
Windows.

It was previously reported that:
```

`add_llvm_library(mlir_c_runner_utils SHARED CRunnerUtils.cpp)`

produces *only* a dll on windows, the linking of mlir_runner_utils fails
because target_link_libraries is looking for a .lib file as opposed to a
.dll file. I think this may be a case where either we need to use
LINK_LIBS or explicitly build a static lib as well, but I haven't tried
either yet.
```
mlir/lib/ExecutionEngine/CMakeLists.txt