File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments