From: "plaisthos (Code Review)" Date: Wed, 18 Oct 2023 17:19:50 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <0bc90bdbc1a9a0780e5ddf06670978476c609522-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="+rPFKl0kmrw="; 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: flichtenheld Cc: openvpn-devel --+rPFKl0kmrw= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/374?usp=3Demail to review the following change. 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 --- M CMakeLists.txt 1 file changed, 0 insertions(+), 4 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/74/374/1 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: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --+rPFKl0kmrw= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Remove CMake custom compiler flags for RELEASE and DEBUG buil=
d

This overwrites the default that cmake automatically sets. In the<= br>case of debug builds, this breaks debugging as -O1 already optimises
= many variables away.

Change-Id: I3ca6965799b23d542ababc3e38880317cb4= 6a3ac
---
M CMakeLists.txt
1 file changed, 0 insertions(+), 4 dele= tions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/cha=
nges/74/374/1
diff --git a/CMakeLists.txt b/CMakeLists.txtindex 376a060..d21c9bd 100644
--- a/CMakeLists.txt<= /span>
+++ b/CMakeLists.txt
@@ -79,10 +79,6 @@
add_link_options("$<$<CONFIG:Release>:/= CETCOMPAT>")
endif()
else ()<= /span>
- set(CMAKE_C_FLAGS_= RELEASE "-O2")
- set(CMAKE_C_FLAGS_DEBUG "-g -O1&qu= ot;)
- set(CMAKE_CXX= _FLAGS_DEBUG "-g -O1")
add_compile_options(-= Wall -Wuninitialized)
check_c_compiler_flag(-Wno-strin= gop-truncation NoStringOpTruncation)


To view, visit change 374. To unsubscribe, or for help writing m= ail filters, visit settings<= /a>.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I3ca6965799b23d542ababc3e388= 80317cb46a3ac
Gerrit-Change-Number: 374
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--+rPFKl0kmrw=--