Skip to content
Snippets Groups Projects
Commit 6ef21a8f authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

dist: tools: print_toolchain_versions.sh: add cppcheck version

parent 6f98e81b
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,17 @@ avr_libc_version() {
printf "%s (%s)" "$(get_define "$cc" avr/version.h __AVR_LIBC_VERSION_STRING__)" "$(get_define "$cc" avr/version.h __AVR_LIBC_DATE_STRING__)"
}
cppcheck_version() {
local cmd="cppcheck"
if command -v "$cmd" 2>&1 >/dev/null; then
ver=$("$cmd" --version | head -n 1)
else
ver="missing"
fi
printf "%s" "$ver"
}
printf "%s\n" "Installed toolchain versions"
printf "%s\n" "----------------------------"
VER=$(gcc --version | head -n 1)
......@@ -67,4 +78,5 @@ done
for p in avr; do
printf "%20s: %s\n" "$p-libc" "$(avr_libc_version "$p")"
done
printf "%20s: %s\n" "cppcheck" "$(cppcheck_version)"
exit 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment