mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-30 19:42:00 +00:00
11 lines
450 B
Bash
Executable File
11 lines
450 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Check that there are no new translation units compiled to an object file larger than a certain size.
|
|
|
|
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'
|
|
then
|
|
echo "^ It's not allowed to have so large translation units."
|
|
exit 1
|
|
fi
|