Skip to content

Commit

Permalink
[MERGE #5826 @sethbrenith] Keep memory usage under control when runni…
Browse files Browse the repository at this point in the history
…ng compile_clang

Merge pull request #5826 from sethbrenith:user/sethb/compile-clang

"make -j" creates an enormous number of processes and consistently crashes my VM despite having 16 GB of memory available. Let's put a slightly more reasonable limit on the process count.
  • Loading branch information
sethbrenith committed Nov 13, 2018
2 parents ef32e99 + 7abd4d9 commit 4b19999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/compile_clang.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ if [ ! -d ./cc-toolchain/src/llvm/projects/compiler-rt ]; then
mkdir binutils_compile; cd binutils_compile
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/build/lib/"
../binutils/configure --enable-gold --enable-plugins --disable-werror --prefix="${ROOT}/build"
make -j
make -j4
make install
if [ $? != 0 ]; then
exit 1
Expand Down

0 comments on commit 4b19999

Please sign in to comment.