Skip to content

Commit 7e5155a

Browse files
[mlir] Fix build after #167848 (#167855)
Fix build after #167848.
1 parent 7a53d33 commit 7e5155a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

mlir/lib/ExecutionEngine/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,11 @@ if(LLVM_ENABLE_PIC)
205205
set_property(TARGET mlir_c_runner_utils PROPERTY CXX_STANDARD 17)
206206
target_compile_definitions(mlir_c_runner_utils PRIVATE mlir_c_runner_utils_EXPORTS)
207207

208+
# Conditionally link apfloat wrappers only on Linux.
209+
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
210+
target_link_libraries(mlir_c_runner_utils PUBLIC mlir_apfloat_wrappers)
211+
endif()
212+
208213
add_mlir_library(mlir_runner_utils
209214
SHARED
210215
RunnerUtils.cpp
@@ -216,6 +221,11 @@ if(LLVM_ENABLE_PIC)
216221
)
217222
target_compile_definitions(mlir_runner_utils PRIVATE mlir_runner_utils_EXPORTS)
218223

224+
# Conditionally link apfloat wrappers only on Linux.
225+
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
226+
target_link_libraries(mlir_runner_utils PUBLIC mlir_apfloat_wrappers)
227+
endif()
228+
219229
add_mlir_library(mlir_async_runtime
220230
SHARED
221231
AsyncRuntime.cpp

0 commit comments

Comments
 (0)