Symlinking $CARGO_HOME to /usr/local/bin made rustup uninstaller delete the entire folder, causing mysterious build errors, so let's do the traditional .cargo/env sourcing to make rustup available to the rest of the build scripts. Also make sure that required scripts run the shell's rcfile to be able to setup the PATH correctly. Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33519>
13 lines
204 B
Bash
Executable File
13 lines
204 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
if test -f /etc/debian_version; then
|
|
apt-get autoremove -y --purge
|
|
fi
|
|
|
|
# Clean up any build cache
|
|
rm -rf /root/.cache
|
|
|
|
if test -x /usr/bin/ccache; then
|
|
ccache --show-stats
|
|
fi
|