Skip to content

Commit 4b19999

Browse files
committed
[MERGE #5826 @sethbrenith] Keep memory usage under control when running 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.
2 parents ef32e99 + 7abd4d9 commit 4b19999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/compile_clang.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ if [ ! -d ./cc-toolchain/src/llvm/projects/compiler-rt ]; then
112112
mkdir binutils_compile; cd binutils_compile
113113
LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${ROOT}/build/lib/"
114114
../binutils/configure --enable-gold --enable-plugins --disable-werror --prefix="${ROOT}/build"
115-
make -j
115+
make -j4
116116
make install
117117
if [ $? != 0 ]; then
118118
exit 1

0 commit comments

Comments
 (0)