From dd36ecf01edd1f1df16bab8ff3ec2407679b04e7 Mon Sep 17 00:00:00 2001 From: Stepan Usatiuk Date: Sat, 30 Mar 2024 09:46:44 +0100 Subject: [PATCH] run.sh working parallel --- run.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 924415101..d8362e8a6 100755 --- a/run.sh +++ b/run.sh @@ -1,6 +1,5 @@ #!/bin/bash - POSITIONAL_ARGS=() QEMU_OPTS=" -no-reboot " @@ -77,7 +76,7 @@ if [ $CLEAN ]; then cmake --build cmake-build-$MODE --target clean fi -cmake --build cmake-build-$MODE --target iso --parallel $(nproc) +cmake --build cmake-build-$MODE --target iso --parallel $(nproc 2>/dev/null || sysctl -n hw.logicalcpu) qemu-system-x86_64 -s $QEMU_OPTS -cdrom cmake-build-$MODE/src/iso/os2.iso