We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2eca762 + 4925cb7 commit ac1e742Copy full SHA for ac1e742
utils/check-style/check-large-objects.sh
@@ -2,8 +2,21 @@
2
3
# Check that there are no new translation units compiled to an object file larger than a certain size.
4
5
+TU_EXCLUDES=(
6
+ CastOverloadResolver
7
+ AggregateFunctionMax
8
+ AggregateFunctionMin
9
+ AggregateFunctionUniq
10
+ FunctionsConversion
11
+
12
+ RangeHashedDictionary
13
+ HashedDictionary
14
15
+ Aggregator
16
+)
17
18
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'
19
+ | grep -v -f <(printf "%s\n" "${TU_EXCLUDES[@]}")
20
then
21
echo "^ It's not allowed to have so large translation units."
22
exit 1
0 commit comments