Skip to content

Commit

Permalink
run.sh: only use -j$(nproc) on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusDierheimer committed Sep 19, 2022
1 parent 381cba2 commit 61e71ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,12 @@ set -e
mkdir -p build/
cd build/
cmake ..
cmake --build . --target fastfetch -j$(nproc)

if [ "$OSTYPE" == "linux-gnu" ]; then
cmake_build_extra_args="-j$(nproc)"
else
cmake_build_extra_args=""
fi
cmake --build . --target fastfetch ${cmake_build_extra_args}

./fastfetch "$@"

0 comments on commit 61e71ed

Please sign in to comment.