mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge pull request #1 from wudanzy/wudanzy-patch-1
Update check-large-objects.sh to be language neutral
This commit is contained in:
commit
ab3547fb0d
@ -12,7 +12,7 @@ TU_EXCLUDES=(
|
||||
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 --regexp='.o$' | sort -rn | awk '{ if ($1 > 50000000) print }' \
|
||||
| grep -v -f <(printf "%s\n" "${TU_EXCLUDES[@]}")
|
||||
then
|
||||
echo "^ It's not allowed to have so large translation units."
|
||||
|
Loading…
Reference in New Issue
Block a user