We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f434474 commit 22244aeCopy full SHA for 22244ae
runtime/flangrti/CMakeLists.txt
@@ -81,11 +81,16 @@ endif()
81
82
# Import OpenMP
83
if (NOT DEFINED LIBOMP_EXPORT_DIR)
84
- find_library(
85
- FLANG_LIBOMP
86
- libomp.so
87
- HINTS ${CMAKE_BINARY_DIR}/lib)
88
- target_link_libraries(flangrti_shared ${FLANG_LIBOMP})
+ # OpenMP is not supported on Windows on ARM yet, use ompstub for linking by default
+ if(NOT (MSVC AND ${TARGET_ARCHITECTURE} STREQUAL "aarch64"))
+ find_library(
+ FLANG_LIBOMP
+ NAMES omp libomp
89
+ HINTS ${CMAKE_BINARY_DIR}/lib)
90
+ target_link_libraries(flangrti_shared PRIVATE ${FLANG_LIBOMP})
91
+ else()
92
+ target_link_libraries(flangrti_shared PRIVATE ompstub_shared)
93
+ endif()
94
endif()
95
96
find_library(
0 commit comments