From d4d23a484dac966e83b625edcaa867c0f3137b5e Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 14 Jan 2018 23:20:32 +0100 Subject: Set incremental build cache in vagrant env. Must be on a filesystem that supports hard links, to avoid warning during compilation. --- Vagrantfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 3c73bce..b4bffcf 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -75,5 +75,8 @@ Vagrant.configure("2") do |config| su - vagrant -c "cargo install -q diesel_cli --no-default-features --features postgres" su - vagrant -c 'echo "PATH=$HOME/.cargo/bin:$PATH" >> ~/.bash_profile' + # Set the incremental build cache to a filesystem that supports hard links + su - vagrant -c "echo export RUSTFLAGS='-C incremental=$HOME/tmp/rust' >> ~/.bashrc + SHELL end -- cgit v1.2.3