Tarantool development patches archive
 help / color / mirror / Atom feed
From: AKhatskevich <avkhatskevich@tarantool.org>
To: tarantool-patches@freelists.org
Subject: [tarantool-patches] [PATCH] Remove second -O2 linker argument
Date: Tue, 15 May 2018 14:26:40 +0300	[thread overview]
Message-ID: <20180515112640.15102-1-avkhatskevich@tarantool.org> (raw)

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

                 reply	other threads:[~2018-05-15 11:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180515112640.15102-1-avkhatskevich@tarantool.org \
    --to=avkhatskevich@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='Re: [tarantool-patches] [PATCH] Remove second -O2 linker argument' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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