Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] Remove second -O2 linker argument
@ 2018-05-15 11:26 AKhatskevich
  0 siblings, 0 replies; only message in thread
From: AKhatskevich @ 2018-05-15 11:26 UTC (permalink / raw)
  To: tarantool-patches

branch: kh/double_flag

----- commit message ------

Variable CMAKE_${lang}_FLAGS is initialized here
cmake/Modules/Compiler/PathScale.cmake and contains `-O2` flag on its
own.
---
 cmake/compiler.cmake | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake
index 05d33ab48..39e7c0212 100644
--- a/cmake/compiler.cmake
+++ b/cmake/compiler.cmake
@@ -107,11 +107,11 @@ endif()
 set (CMAKE_C_FLAGS_DEBUG
     "${CMAKE_C_FLAGS_DEBUG} ${CC_DEBUG_OPT} -O0")
 set (CMAKE_C_FLAGS_RELWITHDEBINFO
-    "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${CC_DEBUG_OPT} -O2")
+    "${CMAKE_C_FLAGS_RELWITHDEBINFO} ${CC_DEBUG_OPT}")
 set (CMAKE_CXX_FLAGS_DEBUG
     "${CMAKE_CXX_FLAGS_DEBUG} ${CC_DEBUG_OPT} -O0")
 set (CMAKE_CXX_FLAGS_RELWITHDEBINFO
-    "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${CC_DEBUG_OPT} -O2")
+    "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} ${CC_DEBUG_OPT}")
 
 unset(CC_DEBUG_OPT)
 
-- 
2.14.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-05-15 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 11:26 [tarantool-patches] [PATCH] Remove second -O2 linker argument AKhatskevich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox