Skip to content

Commit

Permalink
Merge pull request ClickHouse#57108 from azat/build/large-objects
Browse files Browse the repository at this point in the history
Allow HashedDictionary/FunctionsConversion as large TU
  • Loading branch information
alexey-milovidov authored Nov 23, 2023
2 parents 2eca762 + 4925cb7 commit ac1e742
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 ac1e742

Please sign in to comment.