Skip to content

Commit

Permalink
[CMake] Fix to use available rtlib.
Browse files Browse the repository at this point in the history
  • Loading branch information
neboat committed Dec 17, 2017
1 parent d2688ff commit afe3f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,9 @@ else()
-Wl,-z,relro
)
endif()
if(SUPPORTS_COMPILER_RT)
if(CXX_SUPPORTS_COMPILER_RT)
list(APPEND cilk_link_flags --rtlib=compiler-rt)
elseif(SUPPORTS_LIBGCC)
elseif(CXX_SUPPORTS_LIBGCC)
list(APPEND cilk_link_flags --rtlib=libgcc)
endif()
endif()
Expand Down

0 comments on commit afe3f5a

Please sign in to comment.