504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
16 lines
439 B
Bash
16 lines
439 B
Bash
#!@shell@
|
|
|
|
extraBefore=(@sysroot@)
|
|
extraAfter=($NIX_RUSTFLAGS)
|
|
|
|
# Optionally print debug info.
|
|
if (( "${NIX_DEBUG:-0}" >= 1 )); then
|
|
echo "extra flags before to @prog@:" >&2
|
|
printf " %q\n" "${extraBefore[@]}" >&2
|
|
echo "original flags to @prog@:" >&2
|
|
printf " %q\n" "$@" >&2
|
|
echo "extra flags after to @prog@:" >&2
|
|
printf " %q\n" "${extraAfter[@]}" >&2
|
|
fi
|
|
|
|
exec @prog@ "${extraBefore[@]}" "$@" "${extraAfter[@]}"
|