Skip to content

Commit

Permalink
Use nproc to determine jobs used to build GCC/Clang. (#14)
Browse files Browse the repository at this point in the history
The initial build of the docker container is slowed down
by the fact it only uses two threads. However, if the
machine supports more than 2 threads, they should be used
by default.
  • Loading branch information
EricWF authored and Eelis committed Jan 18, 2018
1 parent 7b3825b commit 58dd3e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install-clang
Expand Up @@ -15,7 +15,7 @@ patch -p0 < /geordi/src/llvm-no-temp-files.patch
mkdir /llvm.build
cd /llvm.build
cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_BUILD_DOCS=OFF -DLIBCXX_CXX_ABI=libstdc++ /llvm
make -j2
make -j`nproc`
make install
make install-cxx

Expand Down
2 changes: 1 addition & 1 deletion install-gcc-trunk
Expand Up @@ -6,6 +6,6 @@ svn checkout svn://gcc.gnu.org/svn/gcc/trunk gcc-trunk
mkdir gcc-trunk.build
cd gcc-trunk.build
/gcc-trunk/configure --disable-multilib --enable-languages=c,c++ --disable-bootstrap --disable-libgomp --enable-checking=no --disable-checking --disable-decimal-float
make -j2
make -j`nproc`
make install
rm -rf /gcc-trunk /gcc-trunk.build

0 comments on commit 58dd3e9

Please sign in to comment.