@@ -15,6 +15,10 @@ OS=`uname -s`
1515SELF=$( realpath " $0 " )
1616MYDIR=$( dirname " ${SELF} " )
1717
18+ # ## Colors
19+ TEXT_BOLD_PURPLE=" \033[1;35m"
20+ TEXT_RESET=" \033[0m"
21+
1822# ## Environment parameters:
1923TEST_STACK_LIMIT=" ${TEST_STACK_LIMIT:- 256} "
2024BENCHMARK_NUM_THREADS=" ${BENCHMARK_NUM_THREADS:- 0} "
4044POST_MESSAGE_ON_ERROR=" ${POST_MESSAGE_ON_ERROR:- 1} "
4145# By default, do a lightweight debian HWY package build.
4246HWY_PKG_OPTIONS=" ${HWY_PKG_OPTIONS:- --set-envvar=HWY_EXTRA_CONFIG=-DBUILD_TESTING=OFF -DHWY_ENABLE_EXAMPLES=OFF -DHWY_ENABLE_CONTRIB=OFF} "
47+ EXCLUDE_DEBIAN_PACKAGES=" ${EXCLUDE_DEBIAN_PACKAGES:- } "
4348
4449# Set default compilers to clang if not already set
4550export CC=${CC:- clang}
@@ -708,7 +713,9 @@ cmd_msan_install() {
708713 [" 15" ]=" 15.0.7"
709714 [" 16" ]=" 16.0.6"
710715 [" 17" ]=" 17.0.6"
711- [" 18" ]=" 18.1.6"
716+ [" 18" ]=" 18.1.8"
717+ [" 19" ]=" 19.1.7"
718+ [" 20" ]=" 20.1.2"
712719 )
713720 local llvm_tag=" ${CLANG_VERSION} .0.0"
714721 if [[ -n " ${llvm_tag_by_version["${CLANG_VERSION}"]} " ]]; then
@@ -1221,6 +1228,8 @@ cmd_lint() {
12211228 echo ' To fix them run (from the base directory):' >&2
12221229 echo ' buildifier `git ls-files | grep -E "/BUILD$|WORKSPACE|.bzl$"`' >&2
12231230 fi
1231+ else
1232+ echo -e " ${TEXT_BOLD_PURPLE} SKIPPED:${TEXT_RESET} buildifier (not installed)"
12241233 fi
12251234
12261235 # It is ok, if spell-checker is not installed.
@@ -1229,7 +1238,7 @@ cmd_lint() {
12291238 local sources=` git -C " ${MYDIR} " ls-files | grep -E " \.(${src_ext} )$" `
12301239 typos -c " ${MYDIR} /tools/scripts/typos.toml" ${sources}
12311240 else
1232- echo " Consider installing https://github.com/crate-ci/typos for spell-checking "
1241+ echo -e " ${TEXT_BOLD_PURPLE} SKIPPED: ${TEXT_RESET} typos not installed; try: cargo install typos-cli "
12331242 fi
12341243
12351244 local installed=()
@@ -1370,6 +1379,11 @@ build_debian_pkg() {
13701379 ln -s " ${srcdir} /$f " " ${builddir} /$f "
13711380 fi
13721381 done
1382+ if [[ -n " ${EXCLUDE_DEBIAN_PACKAGES} " ]]; then
1383+ # TODO(eustas): support comma-separated list
1384+ rm -f " ${builddir} " /debian/${EXCLUDE_DEBIAN_PACKAGES} .install
1385+ sed -i " /Package: ${EXCLUDE_DEBIAN_PACKAGES} /,/\n/d" " ${builddir} " /debian/control
1386+ fi
13731387 (
13741388 cd " ${builddir} "
13751389 debuild " ${options} " -b -uc -us
0 commit comments