From e6598d3f51dd0a8c93e79a5064c8285c85d4e806 Mon Sep 17 00:00:00 2001 From: Berags Date: Wed, 4 May 2022 15:44:20 +0200 Subject: [PATCH] Cmake Build multi threaded. https://github.com/blurrypiano/littleVulkanEngine/pull/27 --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 694f703..c8af436 100755 --- a/build.sh +++ b/build.sh @@ -2,5 +2,8 @@ mkdir -p build cd build || exit cmake -S ../ -B . +if [ -z "$MAKEFLAGS" ]; then + export MAKEFLAGS=-j$(nproc) +fi make && make Shaders && ./MiniminiMotorways -cd .. \ No newline at end of file +cd ..