From 4925cb7edae0e75cfd82c2912a40e8d9c18d3fd3 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Wed, 22 Nov 2023 16:33:07 +0100 Subject: [PATCH] Allow HashedDictionary/FunctionsConversion as large TU In case of -DOMIT_HEAVY_DEBUG_SYMBOLS=OFF they are large. Signed-off-by: Azat Khuzhin --- utils/check-style/check-large-objects.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/utils/check-style/check-large-objects.sh b/utils/check-style/check-large-objects.sh index c598ff0e99c8..c92f399849a2 100755 --- a/utils/check-style/check-large-objects.sh +++ b/utils/check-style/check-large-objects.sh @@ -2,8 +2,21 @@ # Check that there are no new translation units compiled to an object file larger than a certain size. +TU_EXCLUDES=( + CastOverloadResolver + AggregateFunctionMax + AggregateFunctionMin + AggregateFunctionUniq + FunctionsConversion + + RangeHashedDictionary + HashedDictionary + + Aggregator +) + if find $1 -name '*.o' | xargs wc -c | grep -v total | sort -rn | awk '{ if ($1 > 50000000) print }' \ - | grep -v -P 'CastOverloadResolver|AggregateFunctionMax|AggregateFunctionMin|RangeHashedDictionary|Aggregator|AggregateFunctionUniq' + | grep -v -f <(printf "%s\n" "${TU_EXCLUDES[@]}") then echo "^ It's not allowed to have so large translation units." exit 1