1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Do not pass optimization flags to Solaris' linker.

It is not supported.

Patch by Xan López.

llvm-svn: 240276
This commit is contained in:
Rafael Espindola 2015-06-22 12:41:52 +00:00
parent 5fb5fa8872
commit 2c6ed3c85c

View File

@ -168,7 +168,7 @@ function(add_link_opts target_name)
# Pass -O3 to the linker. This enabled different optimizations on different # Pass -O3 to the linker. This enabled different optimizations on different
# linkers. # linkers.
if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" OR WIN32)) if(NOT (${CMAKE_SYSTEM_NAME} MATCHES "Darwin|SunOS" OR WIN32))
set_property(TARGET ${target_name} APPEND_STRING PROPERTY set_property(TARGET ${target_name} APPEND_STRING PROPERTY
LINK_FLAGS " -Wl,-O3") LINK_FLAGS " -Wl,-O3")
endif() endif()