File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -579,6 +579,9 @@ add_dependencies(flang_shared
579579if (NOT MSVC )
580580 target_compile_options (flang_static PRIVATE -fPIC)
581581 target_compile_options (flang_shared PRIVATE -fPIC)
582+ else ()
583+ set_target_properties (flang_static PROPERTIES LINKER_LANGUAGE CXX)
584+ set_target_properties (flang_shared PROPERTIES LINKER_LANGUAGE CXX)
582585endif ()
583586
584587target_compile_options (flang_static PUBLIC $<$<COMPILE_LANGUAGE:Fortran>:-Mreentrant>)
Original file line number Diff line number Diff line change @@ -234,6 +234,8 @@ set_target_properties(flangrti_shared flangrti_static
234234if (NOT MSVC )
235235 target_compile_options (flangrti_static PRIVATE -fPIC)
236236 target_compile_options (flangrti_shared PRIVATE -fPIC)
237+ else ()
238+ set_target_properties (flangrti_shared PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE )
237239endif ()
238240
239241target_compile_options (flangrti_static PUBLIC $<$<COMPILE_LANGUAGE:Fortran>:-Mreentrant>)
You can’t perform that action at this time.
0 commit comments