|
|
|
@ -1,7 +1,8 @@
|
|
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# Usage: env [ CC=... ] [ CXX=... ] [ AR=... ] [ RANLIB=... ] [ STRIP=... ] \
|
|
|
|
|
# [ DEBUG=... ] [ LTO=... ] ./build-id [ID_SALT]...
|
|
|
|
|
# Usage: env [ CC=... ] [ C_STANDARD=...] [ CXX=... ] [CXX_STANDARD=...] \
|
|
|
|
|
# [ AR=... ] [ RANLIB=... ] [ STRIP=... ] [ DEBUG=... ] \
|
|
|
|
|
# [ LTO=... ] ./build-id [ID_SALT]...
|
|
|
|
|
#
|
|
|
|
|
# Prints to stdout a SHA256 hash representing the current toolset, used by
|
|
|
|
|
# depends/Makefile as a build id for caching purposes (detecting when the
|
|
|
|
@ -39,12 +40,14 @@
|
|
|
|
|
bash -c "${CC} -v"
|
|
|
|
|
bash -c "${CC} -v -E -xc -o /dev/null - < /dev/null"
|
|
|
|
|
bash -c "${CC} -v -E -xobjective-c -o /dev/null - < /dev/null"
|
|
|
|
|
echo "C_STANDARD=${C_STANDARD}"
|
|
|
|
|
echo "END CC"
|
|
|
|
|
|
|
|
|
|
echo "BEGIN CXX"
|
|
|
|
|
bash -c "${CXX} -v"
|
|
|
|
|
bash -c "${CXX} -v -E -xc++ -o /dev/null - < /dev/null"
|
|
|
|
|
bash -c "${CXX} -v -E -xobjective-c++ -o /dev/null - < /dev/null"
|
|
|
|
|
echo "CXX_STANDARD=${CXX_STANDARD}"
|
|
|
|
|
echo "END CXX"
|
|
|
|
|
|
|
|
|
|
echo "BEGIN AR"
|
|
|
|
|