DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] ci: check C++ headers with clang
@ 2025-07-01 11:31 David Marchand
  2025-07-01 11:37 ` David Marchand
  2025-07-03  8:20 ` [PATCH v2] " David Marchand
  0 siblings, 2 replies; 3+ messages in thread
From: David Marchand @ 2025-07-01 11:31 UTC (permalink / raw)
  To: dev; +Cc: bruce.richardson, Aaron Conole, Michael Santana

If not passing an explicit compiler for C++, meson uses c++ which
defaults to /usr/bin/g++ on a Ubuntu system.
Explicitly choose which compiler to use for C++.

Signed-off-by: David Marchand <david.marchand@redhat.com>
---
Depends-on: series-35592 ("node: fix C++ compatibility errors (option 2)")

---
 .ci/linux-build.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index e9272d3931..6156fc0e80 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -54,6 +54,12 @@ check_traces() {
 
 cross_file=
 
+if [ "${CC%%clang}" != "$CC" ]; then
+    export CXX=clang++
+else
+    export CXX=g++
+fi
+
 if [ "$AARCH64" = "true" ]; then
     if [ "${CC%%clang}" != "$CC" ]; then
         cross_file=config/arm/arm64_armv8_linux_clang_ubuntu
-- 
2.49.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-03  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-01 11:31 [PATCH] ci: check C++ headers with clang David Marchand
2025-07-01 11:37 ` David Marchand
2025-07-03  8:20 ` [PATCH v2] " David Marchand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).