File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ CONF_FLAGS=(
3030)
3131
3232emconfigure ./configure " ${CONF_FLAGS[@]} " $@
33- emmake make -j
33+ emmake make -j $( nproc )
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ FLAGS_MAIN=(
3131 -DLINKED_12BIT=ON
3232)
3333
34+ PARALLEL_BUILD_JOBS=$( nproc)
35+
3436cd source
3537rm -rf build
3638mkdir -p build
@@ -39,17 +41,17 @@ mkdir -p main 10bit 12bit
3941
4042cd 12bit
4143emmake cmake ../.. -DCMAKE_CXX_FLAGS=" $CXXFLAGS " ${FLAGS_12BIT[@]}
42- emmake make -j
44+ emmake make -j ${PARALLEL_BUILD_JOBS}
4345
4446cd ../10bit
4547emmake cmake ../.. -DCMAKE_CXX_FLAGS=" $CXXFLAGS " ${FLAGS_10BIT[@]}
46- emmake make -j
48+ emmake make -j ${PARALLEL_BUILD_JOBS}
4749
4850cd ../main
4951ln -sf ../10bit/libx265.a libx265_main10.a
5052ln -sf ../12bit/libx265.a libx265_main12.a
5153emmake cmake ../.. -DCMAKE_CXX_FLAGS=" $CXXFLAGS " ${FLAGS_MAIN[@]}
52- emmake make -j
54+ emmake make -j ${PARALLEL_BUILD_JOBS}
5355mv libx265.a libx265_main.a
5456
5557# Merge static libraries
You can’t perform that action at this time.
0 commit comments