diff options
author | Xenhat Hex | 2022-11-13 11:12:21 -0500 |
---|---|---|
committer | Xenhat Hex | 2022-11-13 11:12:21 -0500 |
commit | 735a8024d315dc98601594f61ceaf5ac7d2f2afa (patch) | |
tree | f01a537bbea608c03ac7dd4d904328c830f8c5da | |
parent | 31c91c97f4fa2ae8fef49988f3b395a8e4709822 (diff) | |
download | aur-735a8024d315dc98601594f61ceaf5ac7d2f2afa.tar.gz |
make schedtool optional
-rwxr-xr-x | compile.bash | 7 |
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 |