diff options
author | Xenhat Hex | 2022-10-12 20:40:54 -0400 |
---|---|---|
committer | Xenhat Hex | 2022-10-12 20:40:54 -0400 |
commit | 2032dcc66e1b772f17970d57b6044d2d91f17dab (patch) | |
tree | 7df97f3ad9d146b5a893eb4fe64577e42b6090b2 /compile.bash | |
parent | bbee52e77b77a23dee29fc9db7712bb8ee1579bd (diff) | |
download | aur-2032dcc66e1b772f17970d57b6044d2d91f17dab.tar.gz |
borrow a couple tricks from linux-tkg
Diffstat (limited to 'compile.bash')
-rwxr-xr-x | compile.bash | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/compile.bash b/compile.bash index 78f1594d42ef..1513dab6ee07 100755 --- a/compile.bash +++ b/compile.bash @@ -39,8 +39,13 @@ if [[ ${build_jobs} -gt 1 ]]; then fi fi fi +if pacman -Qq ccache &> /dev/null; then + export PATH="/usr/lib/ccache/bin/:$PATH" + export CCACHE_SLOPPINESS="file_macro,locale,time_macros" + export CCACHE_NOHASHDIR="true" +fi export AUTOBUILD_CPU_COUNT=$build_jobs -autobuild configure -A 64 -c ReleaseOS -- \ +schedtool -B -n 1 -e ionice -n 1 autobuild configure -A 64 -c ReleaseOS -- \ -DLL_TESTS:BOOL=OFF \ -DDISABLE_FATAL_WARNINGS=ON \ -DUSE_LTO:BOOL=OFF \ @@ -48,4 +53,4 @@ autobuild configure -A 64 -c ReleaseOS -- \ -DVIEWER_CHANNEL="Alchemy Test" echo "Building with ${AUTOBUILD_CPU_COUNT} jobs (adjusted)" -autobuild build -A64 -c ReleaseOS --no-configure +schedtool -B -n 1 -e ionice -n 1 autobuild build -A64 -c ReleaseOS --no-configure |