Skip to content

Commit

Permalink
Allow HashedDictionary/FunctionsConversion as large TU
Browse files Browse the repository at this point in the history
In case of -DOMIT_HEAVY_DEBUG_SYMBOLS=OFF they are large.

Signed-off-by: Azat Khuzhin <[email protected]>
  • Loading branch information
azat committed Nov 22, 2023
1 parent e92044c commit 4925cb7
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion utils/check-style/check-large-objects.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4925cb7

Please sign in to comment.