Skip to content

Commit ac1e742

Browse files
Merge pull request ClickHouse#57108 from azat/build/large-objects
Allow HashedDictionary/FunctionsConversion as large TU
2 parents 2eca762 + 4925cb7 commit ac1e742

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

utils/check-style/check-large-objects.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,21 @@
22

33
# Check that there are no new translation units compiled to an object file larger than a certain size.
44

5+
TU_EXCLUDES=(
6+
CastOverloadResolver
7+
AggregateFunctionMax
8+
AggregateFunctionMin
9+
AggregateFunctionUniq
10+
FunctionsConversion
11+
12+
RangeHashedDictionary
13+
HashedDictionary
14+
15+
Aggregator
16+
)
17+
518
if find $1 -name '*.o' | xargs wc -c | grep -v total | sort -rn | awk '{ if ($1 > 50000000) print }' \
6-
| grep -v -P 'CastOverloadResolver|AggregateFunctionMax|AggregateFunctionMin|RangeHashedDictionary|Aggregator|AggregateFunctionUniq'
19+
| grep -v -f <(printf "%s\n" "${TU_EXCLUDES[@]}")
720
then
821
echo "^ It's not allowed to have so large translation units."
922
exit 1

0 commit comments

Comments
 (0)