Use nproc to get the number of processors on the build host.

This commit is contained in:
Matt McCormick 2015-05-04 16:23:12 -04:00
parent 880de32bc7
commit 9b81da1b2d

View File

@ -32,7 +32,7 @@ RUN git clone git://cmake.org/cmake.git CMake && \
RUN mkdir CMake-build RUN mkdir CMake-build
WORKDIR /usr/src/CMake-build WORKDIR /usr/src/CMake-build
RUN /usr/src/CMake/bootstrap \ RUN /usr/src/CMake/bootstrap \
--parallel=$(ls /sys/bus/cpu/devices | wc -w) \ --parallel=$(nproc) \
--prefix=/usr && \ --prefix=/usr && \
make -j$(ls /sys/bus/cpu/devices | wc -w) install && \ make -j$(nproc) install && \
rm -rf * rm -rf *