Skip to content

Commit 7721011

Browse files
Albert Ziegenhagelisuruf
authored andcommitted
Fix missing ompstub.lib
Adds WINDOWS_EXPORT_ALL_SYMBOLS to the shared ompstub library target since it is missing __declspec(dllexport/dllimport)
1 parent af31948 commit 7721011

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

runtime/ompstub/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ endif()
2626
set(SHARED_LIBRARY TRUE)
2727
add_flang_library(ompstub_shared ${OMPSTUB_SRC})
2828
set_property(TARGET ompstub_shared PROPERTY OUTPUT_NAME ompstub)
29+
if (MSVC)
30+
set_target_properties(ompstub_shared PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
31+
endif()
2932
set(SHARED_LIBRARY FALSE)
3033

3134
set_target_properties(ompstub_static ompstub_shared

0 commit comments

Comments
 (0)