Skip to content

Commit

Permalink
Merge pull request #4 from albertziegenhagel/windows
Browse files Browse the repository at this point in the history
Windows linker issues
  • Loading branch information
isuruf authored Oct 25, 2017
2 parents acc48f6 + 970f43b commit 50b299e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/flang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,9 @@ add_dependencies(flang_shared
if (NOT MSVC)
target_compile_options(flang_static PRIVATE -fPIC)
target_compile_options(flang_shared PRIVATE -fPIC)
else()
set_target_properties(flang_static PROPERTIES LINKER_LANGUAGE CXX)
set_target_properties(flang_shared PROPERTIES LINKER_LANGUAGE CXX)
endif()

target_compile_options(flang_static PUBLIC $<$<COMPILE_LANGUAGE:Fortran>:-Mreentrant>)
Expand Down
2 changes: 2 additions & 0 deletions runtime/flangrti/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ set_target_properties(flangrti_shared flangrti_static
if (NOT MSVC)
target_compile_options(flangrti_static PRIVATE -fPIC)
target_compile_options(flangrti_shared PRIVATE -fPIC)
else()
set_target_properties(flangrti_shared PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
endif()

target_compile_options(flangrti_static PUBLIC $<$<COMPILE_LANGUAGE:Fortran>:-Mreentrant>)
Expand Down

0 comments on commit 50b299e

Please sign in to comment.