mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Merge pull request #57108 from azat/build/large-objects
Allow HashedDictionary/FunctionsConversion as large TU
This commit is contained in:
commit
ac1e742afa
@ -2,8 +2,21 @@
|
|||||||
|
|
||||||
# Check that there are no new translation units compiled to an object file larger than a certain size.
|
# 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 }' \
|
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
|
then
|
||||||
echo "^ It's not allowed to have so large translation units."
|
echo "^ It's not allowed to have so large translation units."
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user