Skip to content

Commit 0cb8ddf

Browse files
committed
Use nproc for procs number
1 parent ca4ed4a commit 0cb8ddf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libv8/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,11 @@ RUN echo 'solutions = [' >> /tmp/
2727

2828
RUN cd /tmp && git clone --depth=1 https://chromium.googlesource.com/chromium/tools/depot_tools.git && \
2929
export PATH=`pwd`/depot_tools:"${PATH}" && \
30-
export NPROCS=`grep -c ^processor /proc/cpuinfo` && \
31-
gclient sync --no-history --reset -j ${NPROCS} -r ${V8} && \
30+
gclient sync --no-history --reset -j $(nproc) -r ${V8} && \
3231
cd v8 && \
3332
gn gen out.gn/x64.release --args="is_debug=false is_official_build=true is_component_build=true is_cfi=false is_clang=false v8_use_external_startup_data=false treat_warnings_as_errors=false use_custom_libcxx=false use_sysroot=false use_gold=false use_allocator_shim=false" && \
3433
gn args out.gn/x64.release --list > out.gn/x64.release/gn_args.txt && \
35-
ninja -j ${NPROCS} -v d8 -C out.gn/x64.release
34+
ninja -j $(nproc) -v d8 -C out.gn/x64.release
3635

3736
RUN cd /tmp/v8 && \
3837
mkdir -p /opt/libv8/include && \

0 commit comments

Comments
 (0)