From 0a4d98658e47715049aa5f5cd797db5f4d42bc06 Mon Sep 17 00:00:00 2001 From: Michael Jeanson Date: Wed, 8 Sep 2021 16:21:24 -0400 Subject: [PATCH] jjb: Add C++ to print.sh Signed-off-by: Michael Jeanson --- scripts/common/print.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/common/print.sh b/scripts/common/print.sh index 047ed7d..6b15f72 100755 --- a/scripts/common/print.sh +++ b/scripts/common/print.sh @@ -62,11 +62,23 @@ print_tooling() { gcc --version | head -n1 gcc -dumpmachine + print_blue "Selected CXX version" + ${CXX:-c++} --version | head -n1 + + print_blue "Default g++ version" + g++ --version | head -n1 + g++ -dumpmachine + if command -v clang >/dev/null 2>&1; then print_blue "Default clang version" clang --version fi + if command -v clang++ >/dev/null 2>&1; then + print_blue "Default clang++ version" + clang++ --version + fi + print_blue "git version" git --version -- 2.34.1