Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,17 @@ build_coreclr()
echo Failed to generate native component build project!
exit 1
fi

# Get the number of processors available to the scheduler
# Other techniques such as `nproc` only get the number of
# processors available to a single process.
NumProc=$(($(getconf _NPROCESSORS_ONLN)+1))

# Build CoreCLR

echo Executing make $__UnprocessedBuildArgs
make install -j `nproc` $__UnprocessedBuildArgs
echo Executing make install -j $NumProc $__UnprocessedBuildArgs

make install -j $NumProc $__UnprocessedBuildArgs
if [ $? != 0 ]; then
echo Failed to build coreclr components.
exit 1
Expand Down