diff options
author | XenHat | 2023-11-16 17:32:43 -0500 |
---|---|---|
committer | XenHat | 2023-11-16 17:32:43 -0500 |
commit | d772d2f77418d85b4341ee63ca684c0a3a119b79 (patch) | |
tree | 8e05e0233f1f599b48949ea98b73c70130640dd9 | |
parent | 40d861e6b87d165688b1b196655abae6b0655609 (diff) | |
download | aur-d772d2f77418d85b4341ee63ca684c0a3a119b79.tar.gz |
update pkgbuild from template
-rwxr-xr-x | PKGBUILD | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -134,14 +134,19 @@ build() { -DVIEWER_CHANNEL="Alchemy Test" ) #msg2 "BUILDENV: ${BUILDENV[*]}" - if [[ " ${BUILDENV[*]} " =~ ' ccache ' ]] && command -v ccache; then - CMAKE_CXX_COMPILER_LAUNCHER="$(which ccache)" - export CMAKE_CXX_COMPILER_LAUNCHER + msg2 "Configuring build environment..." + # if [[ " ${BUILDENV[*]} " =~ ' ccache ' ]] && command -v ccache >/dev/null 2>&1; then + AL_CMAKE_CONFIG+=("-DCMAKE_CXX_COMPILER_LAUNCHER=$(which ccache)") msg2 "ccache was found and will be used" + # fi + if command -v clang++ >/dev/null 2>&1; then + AL_CMAKE_CONFIG+=("-DCMAKE_C_COMPILER=$(which clang)") + AL_CMAKE_CONFIG+=("-DCMAKE_CXX_COMPILER=$(which clang++)") + msg2 "clang was found and will be used instead of gcc" fi _logfile="${srcdir}/build.${CARCH}.$(date +%s).log" $prefix_cmd autobuild configure -A 64 -c ReleaseOS -- "${AL_CMAKE_CONFIG[@]}" > >(tee -a "$_logfile") 2> >(tee -a "$_logfile" >&2) - msg2 "Building with ${AUTOBUILD_CPU_COUNT} jobs" + msg2 "Building with ${AUTOBUILD_CPU_COUNT} jobs" $prefix_cmd autobuild build -A 64 -c ReleaseOS --no-configure > >(tee -a "$_logfile") 2> >(tee -a "$_logfile" >&2) } # template end; |