build: Use ccache binary instead of PATH

The ccache symlinks dir may differ (Arch and Debian disagree, for
example), and this allows us to use ccache for mingw-w64 within the
runtime container.
This commit is contained in:
Andrew Eikum 2020-08-17 13:09:11 -05:00
parent 24b944292e
commit 9d7713235c
2 changed files with 21 additions and 12 deletions

6
Vagrantfile vendored
View file

@ -106,12 +106,6 @@ Vagrant.configure(2) do |config|
#ensure we use only the mingw-w64 that we built
apt-get remove -y '*mingw-w64*'
#setup ccache
ln -s $(which ccache) /usr/lib/ccache/x86_64-w64-mingw32-gcc
ln -s $(which ccache) /usr/lib/ccache/x86_64-w64-mingw32-g++
ln -s $(which ccache) /usr/lib/ccache/i686-w64-mingw32-gcc
ln -s $(which ccache) /usr/lib/ccache/i686-w64-mingw32-g++
SHELL
end
end