2022-12-12 15:25:25 +01:00
|
|
|
#!/bin/sh
|
|
|
|
if [ -n "$1" ]; then CC="$1"; elif [ -z "$CC" ]; then CC="cc"; fi
|
|
|
|
|
2024-11-14 17:21:11 +01:00
|
|
|
if [ -e /etc/os-release ]; then
|
|
|
|
PLATFORM_NAME="`cat /etc/os-release | egrep '^PRETTY_NAME=' | cut -c 13- | tr -d '\042'`"
|
|
|
|
elif [ -x /usr/bin/sw_vers ]; then
|
|
|
|
PLATFORM_NAME="`/usr/bin/sw_vers -productName` `/usr/bin/sw_vers -productVersion`"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -z "$PLATFORM_NAME" ]; then
|
|
|
|
PLATFORM_NAME="`uname -s -r -v -m`"
|
|
|
|
fi
|
|
|
|
|
2022-12-13 20:22:57 +01:00
|
|
|
echo "Built : `date -u +'%Y-%m-%d %H:%M:%S'`"
|
2024-11-14 17:21:11 +01:00
|
|
|
echo "Platform : $PLATFORM_NAME"
|
2022-12-12 15:25:25 +01:00
|
|
|
echo "Target : `$CC -dumpmachine`"
|
2024-06-05 00:23:48 +02:00
|
|
|
echo "Compiler : `$CC -v 2>&1 | egrep -i '(gcc|clang)[[:space:]]+version' 2>/dev/null | head -n 1`"
|