Reduce memory requirements for installing p4c by 'vagrant up' (#299)
This commit is contained in:
parent
aaf14bdc40
commit
52880ba9e9
@ -102,7 +102,12 @@ git submodule update --init --recursive
|
|||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
cd build
|
||||||
cmake ..
|
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 make install
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
cd ../..
|
cd ../..
|
||||||
|
Loading…
x
Reference in New Issue
Block a user