Move toolchain-info.sh to util/

This commit is contained in:
Duke
2024-03-22 05:11:03 -07:00
parent 981b275757
commit 89cc8a9ee3

17
util/toolchain-info.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
# Copyright (c) 2016-2024 The Hush developers
# Distributed under the GPLv3 software license, see the accompanying
# file COPYING or https://www.gnu.org/licenses/gpl-3.0.en.html
#TODO: detect other versions of gcc/clang
tools=("gcc-8" "g++-8" "otool" "nm")
echo "Platform: `uname -a`"
echo "-------------------------------------"
echo "Tool info:"
echo
for tool in "${tools[@]}"
do
echo "$tool location: `which $tool`"
echo "$tool version: `$tool --version|grep -i version`"
echo "-------"
done