mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
set default values for mem & cpus to remove error for vagrant up on Windows
This commit is contained in:
parent
7b088b6ba5
commit
f07d8a03fa
3
Vagrantfile
vendored
3
Vagrantfile
vendored
@ -19,6 +19,9 @@ Vagrant.configure(2) do |config|
|
||||
## VIRTUALBOX ##
|
||||
|
||||
config.vm.provider "virtualbox" do |v|
|
||||
# Give some pessimistic default values, fix errors on Windows
|
||||
mem = 512
|
||||
cpus = 2
|
||||
# Give VM 1/4 system memory & access to all cpu cores on the host
|
||||
if host =~ /darwin/
|
||||
cpus = `sysctl -n hw.ncpu`.to_i
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user