summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorXenhat Hex2022-11-13 11:12:21 -0500
committerXenhat Hex2022-11-13 11:12:21 -0500
commit735a8024d315dc98601594f61ceaf5ac7d2f2afa (patch)
treef01a537bbea608c03ac7dd4d904328c830f8c5da
parent31c91c97f4fa2ae8fef49988f3b395a8e4709822 (diff)
downloadaur-735a8024d315dc98601594f61ceaf5ac7d2f2afa.tar.gz
make schedtool optional
-rwxr-xr-xcompile.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/compile.bash b/compile.bash
index 737f7d07cd83..d9995a930308 100755
--- a/compile.bash
+++ b/compile.bash
@@ -44,12 +44,17 @@ if pacman -Qq ccache &> /dev/null; then
export CCACHE_NOHASHDIR="true"
fi
export AUTOBUILD_CPU_COUNT=$build_jobs
-schedtool -B -n 1 -e ionice -n 1 autobuild configure -A 64 -c ReleaseOS -- \
+prefix_cmd=
+if [[ command -v schedtool >/dev/null 2>&1 ]]; then
+ prefix_cmd='schedtool -B -n1 -e'
+fi
+$prefix_cmd ionice -n 1 autobuild configure -A 64 -c ReleaseOS -- \
-DLL_TESTS:BOOL=OFF \
-DDISABLE_FATAL_WARNINGS=ON \
-DUSE_LTO:BOOL=OFF \
-DDCMAKE_CXX_FLAGS="-march=x86-64-v2 -mtune=native" \
-DVIEWER_CHANNEL="Alchemy Test"
+unset prefix_cmd
echo "Building with ${AUTOBUILD_CPU_COUNT} jobs (adjusted)"
schedtool -B -n 1 -e ionice -n 1 autobuild build -A64 -c ReleaseOS --no-configure