Skip to content

Commit 0ecd51c

Browse files
committed
no rt for macos
1 parent 70fe37a commit 0ecd51c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

runtime/flang/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,10 +512,12 @@ add_dependencies(flang_shared flang_static)
512512

513513
target_link_libraries(flang_shared flangrti_shared)
514514
# Resolve symbols against libm and librt
515-
if (NOT MSVC)
516-
target_link_libraries(flang_shared m rt)
517-
else()
515+
if (MSVC)
518516
set_target_properties(flang_shared PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
517+
elseif (APPLE)
518+
target_link_libraries(flang_shared m)
519+
else()
520+
target_link_libraries(flang_shared m rt)
519521
endif()
520522

521523
set(SHARED_LIBRARY FALSE)

0 commit comments

Comments
 (0)