Skip to content

Commit

Permalink
Merge pull request IntelRealSense#876 from tingshao/cpu_num_build
Browse files Browse the repository at this point in the history
[Node.js] Create build jobs according to processor count
  • Loading branch information
Halton Huo authored Dec 5, 2017
2 parents a1cea33 + a949240 commit 04f9306
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wrappers/nodejs/scripts/npm_dist/build-dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ then
fi

# Step 2
make -j 8
CPU_NUM=`grep -c ^processor /proc/cpuinfo`
make -j $CPU_NUM
if [ "$?" -gt 0 ]
then
echo 'Failed to build librealsense'
Expand Down

0 comments on commit 04f9306

Please sign in to comment.