All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v5 1/3] build: Add c++ build support
@ 2022-03-09  2:30 Hongzhan Chen
  2022-03-09  2:30 ` [PATCH v5 2/3] KernelShark: Add xenomai_cobalt_switch_events plugin for KernelShark Hongzhan Chen
  2022-03-09  2:30 ` [PATCH v5 3/3] libtraceevent: Add xenomai_schedparams plugin for libtraceevent Hongzhan Chen
  0 siblings, 2 replies; 6+ messages in thread
From: Hongzhan Chen @ 2022-03-09  2:30 UTC (permalink / raw)
  To: xenomai, jan.kiszka, florian.bezdeka

Add c++ build support or use specific c++ compiler

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
---
 configure.ac | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/configure.ac b/configure.ac
index 0389cf008..16cffd8f8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -79,6 +79,18 @@ AC_ARG_WITH(cc,
     ])
 AC_PROG_CC
 
+AC_ARG_WITH(cxx,
+    AS_HELP_STRING([--with-cxx=compiler],[use specific C++ compiler]),
+    [
+	case "$withval" in
+	"" | y | ye | yes | n | no)
+	    AC_MSG_ERROR([You must supply an argument to --with-cxx])
+	  ;;
+	esac
+	CXX="$withval"
+    ])
+AC_PROG_CXX
+
 # Do not let autoconf set the default value of CFLAGS
 if $XENO_EMPTY_CFLAGS; then
 	CFLAGS=""
-- 
2.17.1



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

end of thread, other threads:[~2022-03-10  7:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-09  2:30 [PATCH v5 1/3] build: Add c++ build support Hongzhan Chen
2022-03-09  2:30 ` [PATCH v5 2/3] KernelShark: Add xenomai_cobalt_switch_events plugin for KernelShark Hongzhan Chen
2022-03-09  6:16   ` Jan Kiszka
2022-03-09 23:48     ` Chen, Hongzhan
2022-03-10  7:17       ` Jan Kiszka
2022-03-09  2:30 ` [PATCH v5 3/3] libtraceevent: Add xenomai_schedparams plugin for libtraceevent Hongzhan Chen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.