From: "stipa (Code Review)"
Date: Fri, 12 Jan 2024 16:39:10 +0000
In-Reply-To:
References:
Reply-To: lstipakov@...277..., arne-openvpn@...1227...,
openvpn-devel@lists.sourceforge.net, frank@...2641...
Message-ID: <6beb053332d2b8c5eee0d62e03f2f8e66ce93842-EmailReplacePatchSet-HTML@...2715...>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-Type: multipart/alternative; boundary="/8L4orEiBj4="; charset=UTF-8
Subject: [Openvpn-devel] [XS] Change in openvpn[master]: CMakeLists.txt:
Don't fail on missing compile_commands.json
List-Id:
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
To: plaisthos , flichtenheld
Cc: openvpn-devel
--/8L4orEiBj4=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos, stipa.
Hello flichtenheld, plaisthos,
I'd like you to reexamine a change. Please visit
http://gerrit.openvpn.net/c/openvpn/+/495?usp=3Demail
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld
Change subject: CMakeLists.txt: Don't fail on missing compile_commands.json
......................................................................
CMakeLists.txt: Don't fail on missing compile_commands.json
Creating symlinks on Windows by default requires an elevated prompt,
which is not normally the case (but it turned out is the case for GHA).
Without elevated prompt this fails the build. Fix by make symlink creation
non-fatal by providing variable to store result.
Since CMAKE_EXPORT_COMPILE_COMMANDS works only on Ninja and
Makefile generators and doesn't produce anything on MSVC,
the symlink is useless in this case anyway.
Change-Id: Ic19f859c3aca8b30aa51b12dcb906a6e7e735019
Signed-off-by: Lev Stipakov
---
M CMakeLists.txt
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/95/495/3
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc46c27..5c6fff0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,7 +45,7 @@
# Create machine readable compile commands
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
file(CREATE_LINK ${CMAKE_CURRENT_BINARY_DIR}/compile_commands.json
- ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json SYMBOLI=
C)
+ ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json RESULT =
COMPILE_COMMANDS_CREATED SYMBOLIC)
# AddressSanitize - use CXX=3Dclang++ CC=3Dclang cmake -DCMAKE_BUILD_TYPE=
=3Dasan to build with ASAN
set(CMAKE_C_FLAGS_ASAN
--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/495?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: Ic19f859c3aca8b30aa51b12dcb906a6e7e735019
Gerrit-Change-Number: 495
Gerrit-PatchSet: 3
Gerrit-Owner: stipa
Gerrit-Reviewer: flichtenheld
Gerrit-Reviewer: plaisthos
Gerrit-CC: openvpn-devel
Gerrit-Attention: plaisthos
Gerrit-Attention: flichtenheld
Gerrit-Attention: stipa
Gerrit-MessageType: newpatchset
--/8L4orEiBj4=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Attention is currently required from: flichtenheld, plaisthos, stipa. <=
/p>
stipa uploaded patch set #3 to this change.
View Change
The following approvals got outdated and were removed:
Code-Review-1 by flichtenheld
CMakeLists.txt: Don't fail on missing com=
pile_commands.json
Creating symlinks on Windows by default requires =
an elevated prompt,
which is not normally the case (but it turned out is=
the case for GHA).
Without elevated prompt this fails the build. Fix by=
make symlink creation
non-fatal by providing variable to store result.<=
br>
Since CMAKE_EXPORT_COMPILE_COMMANDS works only on Ninja and
Makef=
ile generators and doesn't produce anything on MSVC,
the symlink is =
useless in this case anyway.
Change-Id: Ic19f859c3aca8b30aa51b12dcb9=
06a6e7e735019
Signed-off-by: Lev Stipakov <lev@...515...>
---M CMakeLists.txt
1 file changed, 1 insertion(+), 1 deletion(-)
=
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/95/495/3
=
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc=
46c27..5c6fff0 100644
--- a/CMakeLists.txt
=
+++ b/CMakeLists.txt
@@ -45,7 +45,7 @@
# C=
reate machine readable compile commands
set(CMAKE_EXPORT_C=
OMPILE_COMMANDS 1)
file(CREATE_LINK ${CMAKE_CURRENT_BINARY=
_DIR}/compile_commands.json
- ${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json SY=
MBOLIC)
+ =
${CMAKE_CURRENT_SOURCE_DIR}/compile_commands.json RESULT COMPILE_COMMA=
NDS_CREATED SYMBOLIC)
# AddressSanitize =
- use CXX=3Dclang++ CC=3Dclang cmake -DCMAKE_BUILD_TYPE=3Dasan to build wit=
h ASAN
set(CMAKE_C_FLAGS_ASAN
<=
/pre>To view, visit change 495. To unsubscribe, or for help writing mail filt=
ers, visit settings.
=
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic19f859c3aca8b30aa51b12dcb9=
06a6e7e735019
Gerrit-Change-Number: 495
Gerrit-PatchSet: 3
Gerrit-Owner: stipa <lstipakov@...277...>=
;
Gerrit-Reviewer: flichtenheld <frank@...2716...=
1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...=
.1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...=
ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...=
..1227...>
Gerrit-Attention: flichtenheld <frank@...2375...=
41...>
Gerrit-Attention: stipa <lstipakov@...1663...=
.>
Gerrit-MessageType: newpatchset
--/8L4orEiBj4=--