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:
parent
5fb5fa8872
commit
2c6ed3c85c
@ -168,7 +168,7 @@ function(add_link_opts target_name)
|
||||
|
||||
# Pass -O3 to the linker. This enabled different optimizations on different
|
||||
# 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
|
||||
LINK_FLAGS " -Wl,-O3")
|
||||
endif()
|
||||
|
Loading…
x
Reference in New Issue
Block a user