mirror of
https://github.com/rust-lang/cargo
synced 2024-10-30 03:28:38 +00:00
22 lines
391 B
Bash
Executable file
22 lines
391 B
Bash
Executable file
#!/bin/bash
|
|
# This script dumps information about the build environment to stdout.
|
|
|
|
set -euo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
echo "environment variables:"
|
|
printenv | sort
|
|
echo
|
|
|
|
echo "disk usage:"
|
|
df -h
|
|
echo
|
|
|
|
echo "CPU info:"
|
|
if [[ "${OSTYPE}" = "darwin"* ]]; then
|
|
system_profiler SPHardwareDataType || true
|
|
sysctl hw || true
|
|
else
|
|
cat /proc/cpuinfo || true
|
|
cat /proc/meminfo || true
|
|
fi
|