From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1264323DC4 for ; Tue, 15 May 2018 07:26:58 -0400 (EDT) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3siLCmg472MM for ; Tue, 15 May 2018 07:26:58 -0400 (EDT) Received: from smtp61.i.mail.ru (smtp61.i.mail.ru [217.69.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 7A22C23DB8 for ; Tue, 15 May 2018 07:26:57 -0400 (EDT) Received: from [185.6.245.156] (port=33382 helo=lesaha-ThP.mail.msk) by smtp61.i.mail.ru with esmtpa (envelope-from ) id 1fIY6Z-0005iV-3M for tarantool-patches@freelists.org; Tue, 15 May 2018 14:26:55 +0300 From: AKhatskevich Subject: [tarantool-patches] [PATCH] Remove second -O2 linker argument Date: Tue, 15 May 2018 14:26:40 +0300 Message-Id: <20180515112640.15102-1-avkhatskevich@tarantool.org> Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: tarantool-patches@freelists.org 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