aboutsummaryrefslogtreecommitdiffstats
path: root/Vagrantfile
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-01-14 23:20:32 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-01-14 23:20:32 +0100
commitd4d23a484dac966e83b625edcaa867c0f3137b5e (patch)
treeac9a9a1c86822db68d5aa5ae41362763e9838ebc /Vagrantfile
parent00815461a57a190c2454c23e808e5e8cfd121c57 (diff)
downloadrocket-blog-d4d23a484dac966e83b625edcaa867c0f3137b5e.tar.gz
rocket-blog-d4d23a484dac966e83b625edcaa867c0f3137b5e.tar.bz2
rocket-blog-d4d23a484dac966e83b625edcaa867c0f3137b5e.zip
Set incremental build cache in vagrant env.
Must be on a filesystem that supports hard links, to avoid warning during compilation.
Diffstat (limited to 'Vagrantfile')
-rw-r--r--Vagrantfile3
1 files changed, 3 insertions, 0 deletions
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