Skip to content

Commit 7ddcd2a

Browse files
committed
auto merge of #9628 : alexcrichton/rust/tidy-binaries, r=thestinger
Closes #9621
2 parents 5c01685 + d29b3ac commit 7ddcd2a

File tree

10 files changed

+27
-0
lines changed

10 files changed

+27
-0
lines changed

mk/tests.mk

+9
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,15 @@ tidy:
261261
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
262262
$(Q)echo $(ALL_HS) \
263263
| xargs -n 10 $(CFG_PYTHON) $(S)src/etc/tidy.py
264+
$(Q)find $(S)src -type f -perm +111 \
265+
-not -name '*.rs' -and -not -name '*.py' \
266+
-and -not -name '*.sh' \
267+
| grep '^$(S)src/llvm' -v \
268+
| grep '^$(S)src/libuv' -v \
269+
| grep '^$(S)src/gyp' -v \
270+
| grep '^$(S)src/etc' -v \
271+
| grep '^$(S)src/rt/jemalloc' -v \
272+
| xargs $(CFG_PYTHON) $(S)src/etc/check-binaries.py
264273

265274
endif
266275

src/etc/check-binaries.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
# file at the top-level directory of this distribution and at
3+
# http://rust-lang.org/COPYRIGHT.
4+
#
5+
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
# option. This file may not be copied, modified, or distributed
9+
# except according to those terms.
10+
11+
import sys
12+
13+
offenders = sys.argv[1:]
14+
if len(offenders) > 0:
15+
print("Binaries checked into src:")
16+
for offender in offenders:
17+
print(offender)
18+
sys.exit(1)

src/libsyntax/syntax

-8.04 MB
Binary file not shown.

src/rt/sundown/html/html.c

100755100644
File mode changed.

src/test/compile-fail/issue-3763

-14.7 KB
Binary file not shown.

src/test/compile-fail/liveness-unused

-14.2 KB
Binary file not shown.

src/test/run-pass/issue-3559

-9.54 KB
Binary file not shown.

src/test/run-pass/issue-3702

-14.4 KB
Binary file not shown.

src/test/run-pass/issue-4016

-9.53 KB
Binary file not shown.

src/test/run-pass/issue-4092

-93.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)