[PATCH] Do not pass optimization flags to Solaris' linker
Xan López
xan at igalia.com
Mon Jun 22 03:06:39 PDT 2015
It is not supported.
-------------- next part --------------
>From b836b92e533140b95f43334af8ce59d5d5ce1104 Mon Sep 17 00:00:00 2001
From: Xan Lopez <xan at igalia.com>
Date: Mon, 22 Jun 2015 05:45:13 -0400
Subject: [PATCH] AddLLVM: Solaris linker does not support optimization flags
either
Do not pass -O3 to the linker in Solaris.
---
cmake/modules/AddLLVM.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index f2eb33b..3eca53e 100644
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -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()
--
2.4.3
More information about the llvm-commits
mailing list