Skip to content

Commit 6267734

Browse files
committed
Cleanup, II.
1 parent 230f762 commit 6267734

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

sanity/checker.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ def __init__(self):
2121

2222
self.path = path if path else ''
2323

24+
def check(self):
25+
if not self.checkOS():
26+
print 'I do not think we support your OS. Sorry.'
27+
return 1
28+
29+
success = self.checkCompiler()
30+
31+
if success:
32+
self.checkAuxiliaries()
33+
34+
return 0 if success else 1
35+
36+
37+
2438
def checkOS(self):
2539
return (sys.platform.startswith('freebsd') or
2640
sys.platform.startswith('linux') or

wllvm-sanity-checker

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,8 @@ from sanity.checker import *
99

1010
def main(args):
1111

12-
checker = Checker()
12+
return Checker().check()
1313

14-
if not checker.checkOS():
15-
print 'I do not think we support your OS. Sorry.'
16-
return 1
17-
18-
success = checker.checkCompiler()
19-
20-
if success:
21-
checker.checkAuxiliaries()
22-
23-
return 0 if success else 1
24-
2514

2615
if __name__ == '__main__':
2716
sys.exit(main(sys.argv))

0 commit comments

Comments
 (0)