Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- set -e
- if [[ ! -r "./x.py" ]]; then
- echo >&2 "error: not in 'rustc' repository"
- exit 1
- fi
- export GCC_FARM_PREBUILD=$'
- HOST_PATH="$HOST_PATH"
- CONFIG_FILE="${HOST_PATH/#\~/\$HOME}/config.toml"
- echo "Updating rustc config file \`\$CONFIG_FILE\`..."
- CODEGEN_UNITS=$(( $(nproc) / 2 ))
- sed -ibak -E "s/^#? ?(codegen-units) = .+$/\\1 = \$CODEGEN_UNITS/" "\$CONFIG_FILE"
- '
- exec gcc-farm "$@"
Add Comment
Please, Sign In to add comment