Reduce memory requirements for installing p4c by 'vagrant up' (#299)

This commit is contained in:
Andy Fingerhut 2019-10-29 09:33:29 -07:00 committed by GitHub
parent aaf14bdc40
commit 52880ba9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,12 @@ git submodule update --init --recursive
mkdir -p build
cd build
cmake ..
make -j${NUM_CORES}
# The command 'make -j${NUM_CORES}' works fine for the others, but
# with 2 GB of RAM for the VM, there are parts of the p4c build where
# running 2 simultaneous C++ compiler runs requires more than that
# much memory. Things work better by running at most one C++ compilation
# process at a time.
make -j1
sudo make install
sudo ldconfig
cd ../..