Skip to content

Commit ab6e235

Browse files
committed
Update build script (linux)
1 parent 0cb4844 commit ab6e235

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

tools/build.sh

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,21 @@
22

33
if [ "$REPO_ROOT" == "" ] ; then REPO_ROOT="$(readlink -f $(dirname $(readlink -f $0))/../)" ; fi
44

5-
# check for build environment, tools and libraries
6-
7-
if [ "$(command -v cmake)" == "" ] ;
8-
then
5+
if [ "$(command -v cmake)" == "" ] ;
6+
then
97
echo "error: cmake not found." 1>&2
10-
exit -1
8+
exit
119
fi
1210

13-
if [ "$(command -v dotnet)" == "" ] ;
14-
then
11+
if [ "$(command -v dotnet)" == "" ] ;
12+
then
1513
echo "error: dotnet not found." 1>&2
1614
echo "see: https://www.microsoft.com/net/download/linux"
17-
exit -1
15+
exit
1816
fi
1917

2018
# build
21-
mkdir -p "$REPO_ROOT/build" && pushd "$_" || exit -1
22-
cmake "$REPO_ROOT" -DCMAKE_BUILD_TYPE=Release || exit -1
23-
make -j || exit -1
19+
mkdir -p "$REPO_ROOT/build" && pushd "$_" || exit
20+
cmake "$REPO_ROOT" -DCMAKE_BUILD_TYPE=Release || exit
21+
make -j $(nproc) || exit
2422
popd

0 commit comments

Comments
 (0)