llvm.org GIT mirror llvm / e16fa7f
Do not pass optimization flags to Solaris' linker. It is not supported. Patch by Xan López. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240276 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 4 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
167167
168168 # Pass -O3 to the linker. This enabled different optimizations on different
169169 # linkers.
170 if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32))
170 if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin|SunOS" OR WIN32))
171171 set_property(TARGET ${target_name} APPEND_STRING PROPERTY
172172 LINK_FLAGS " -Wl,-O3")
173173 endif()