File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change
1
+ import sys
1
2
import os
2
3
import subprocess as sp
3
4
@@ -19,7 +20,12 @@ def __init__(self):
19
20
path = path + os .path .sep
20
21
21
22
self .path = path if path else ''
22
-
23
+
24
+ def checkOS (self ):
25
+ return (sys .platform .startswith ('freebsd' ) or
26
+ sys .platform .startswith ('linux' ) or
27
+ sys .platform .startswith ('darwin' ))
28
+
23
29
24
30
def checkSwitch (self ):
25
31
compiler_type = os .getenv ('LLVM_COMPILER' )
Original file line number Diff line number Diff line change 5
5
#
6
6
7
7
import sys
8
- import os
9
8
from sanity .checker import *
10
9
11
10
def main (args ):
12
11
13
-
14
- if not (sys .platform .startswith ('freebsd' ) or
15
- sys .platform .startswith ('linux' ) or
16
- sys .platform .startswith ('darwin' )):
17
- print 'I do not think we support your OS. Sorry.'
18
- return 1
19
-
20
12
checker = Checker ()
21
13
14
+ if not checker .checkOS ():
15
+ print 'I do not think we support your OS. Sorry.'
16
+ return 1
22
17
23
18
success = checker .checkCompiler ()
24
19
You can’t perform that action at this time.
0 commit comments