vagrant: Enable ccache

Change-Id: Ifcf24a7ad2a1745f67838ee76a8a49e51049fc3a
Reviewed-on: https://code.wireshark.org/review/29359
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
João Valverde 2018-08-30 22:33:52 +01:00 committed by Anders Broman
parent a1fe8fe066
commit fd103ed417
2 changed files with 3 additions and 1 deletions

2
Vagrantfile vendored
View File

@ -23,6 +23,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
s.path = 'tools/debian-setup.sh'
s.args = ['--install-optional', '--assume-yes']
end
deb.vm.provision :shell, inline: "apt-get -y install ccache"
deb.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
end
@ -33,6 +34,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
s.path = 'tools/rpm-setup.sh'
s.args = ['--install-optional', '--assumeyes']
end
rpm.vm.provision :shell, inline: "yum -y install ccache"
rpm.vm.provision :shell, path: 'vagrant_build.sh', privileged: false
end
end

View File

@ -14,6 +14,6 @@ grep -q WIRESHARK_RUN_FROM_BUILD_DIRECTORY ~/.profile || echo "export WIRESHARK_
grep -q WIRESHARK_BIN_DIR ~/.profile || echo "export WIRESHARK_BIN_DIR=~/build/run" >> ~/.profile
mkdir -p build
cd build
cmake /vagrant/
cmake -DENABLE_CCACHE=ON /vagrant/
make -j6
make test