From: "cron2 (Code Review)" Date: Thu, 9 Nov 2023 11:37:17 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <4491f67ce17b365a72a3278104ddf0ba1c8a687e-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Rl/J1qr/NuQ="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Remove CMake custom compiler flags for RELEASE and DEBUG build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos , flichtenheld Cc: openvpn-devel --Rl/J1qr/NuQ= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has uploaded a new patch set (#2) to the change originally created by= plaisthos. ( http://gerrit.openvpn.net/c/openvpn/+/374?usp=3Demail ) The following approvals got outdated and were removed: Code-Review+2 by flichtenheld Change subject: Remove CMake custom compiler flags for RELEASE and DEBUG bu= ild ...................................................................... Remove CMake custom compiler flags for RELEASE and DEBUG build This overwrites the default that cmake automatically sets. In the case of debug builds, this breaks debugging as -O1 already optimises many variables away. Change-Id: I3ca6965799b23d542ababc3e38880317cb46a3ac Acked-by: Frank Lichtenheld Message-Id: <20231107141755.30559-1-frank@...2641...> URL: https://www.mail-archive.com/search?l=3Dmid&q=3D20231107141755.30559-1= -frank@...2641... Signed-off-by: Gert Doering --- M CMakeLists.txt 1 file changed, 0 insertions(+), 4 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/74/374/2 diff --git a/CMakeLists.txt b/CMakeLists.txt index 376a060..d21c9bd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,10 +79,6 @@ add_link_options("$<$:/CETCOMPAT>") endif() else () - set(CMAKE_C_FLAGS_RELEASE "-O2") - set(CMAKE_CXX_FLAGS_RELEASE "-O2") - set(CMAKE_C_FLAGS_DEBUG "-g -O1") - set(CMAKE_CXX_FLAGS_DEBUG "-g -O1") add_compile_options(-Wall -Wuninitialized) check_c_compiler_flag(-Wno-stringop-truncation NoStringOpTruncation) -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/374?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I3ca6965799b23d542ababc3e38880317cb46a3ac Gerrit-Change-Number: 374 Gerrit-PatchSet: 2 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-MessageType: newpatchset --Rl/J1qr/NuQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 uploaded patch set #2 to the change originally cr= eated by plaisthos.

View Change

The following approvals got outdated= and were removed: Code-Review+2 by flichtenheld

Remove CMake custom compiler flags for RELEAS=
E and DEBUG build

This overwrites the default that cmake automatical= ly sets. In the
case of debug builds, this breaks debugging as -O1 alrea= dy optimises
many variables away.

Change-Id: I3ca6965799b23d542ab= abc3e38880317cb46a3ac
Acked-by: Frank Lichtenheld <frank@...2641...&g= t;
Message-Id: <20231107141755.30559-1-frank@...2641...>
URL: h= ttps://www.mail-archive.com/search?l=3Dmid&q=3D20231107141755.30559-1-f= rank@...2641...
Signed-off-by: Gert Doering <gert@...1296...>
-= --
M CMakeLists.txt
1 file changed, 0 insertions(+), 4 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/74/37=
4/2
diff --git a/CMakeLists.txt b/CMakeLists.txt
in= dex 376a060..d21c9bd 100644
--- a/CMakeLists.txt
= +++ b/CMakeLists.txt
@@ -79,10 +79,6 @@
add_link_options("$<$<CONFIG:Release>:/CETCOMPAT&= gt;")
endif()
else ()
= - set(CMAKE_C_FLAGS_RELEASE &q= uot;-O2")
- set= (CMAKE_CXX_FLAGS_RELEASE "-O2")
- set(CMAKE_C_FLAGS_DEBUG "-g -O1")<= br>- set(CMAKE_CXX_FLAGS_DEBUG= "-g -O1")
add_compile_options(-Wall -Wunini= tialized)
check_c_compiler_flag(-Wno-stringop-truncati= on NoStringOpTruncation)


To view, visit change 374. To unsubscribe, or for help writing mail filters,= visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3ca6965799b23d542ababc3e388= 80317cb46a3ac
Gerrit-Change-Number: 374
Gerrit-PatchSet: 2
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: newpatchset
--Rl/J1qr/NuQ=--