[llvm] r240276 - Do not pass optimization flags to Solaris' linker.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jun 22 05:41:52 PDT 2015
Author: rafael
Date: Mon Jun 22 07:41:52 2015
New Revision: 240276
URL: http://llvm.org/viewvc/llvm-project?rev=240276&view=rev
Log:
Do not pass optimization flags to Solaris' linker.
It is not supported.
Patch by Xan López.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=240276&r1=240275&r2=240276&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Mon Jun 22 07:41:52 2015
@@ -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()
More information about the llvm-commits
mailing list