Merge pull request #57108 from azat/build/large-objects

Allow HashedDictionary/FunctionsConversion as large TU
This commit is contained in:
Alexey Milovidov 2023-11-23 15:00:59 +01:00 committed by GitHub
commit ac1e742afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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