File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -659,8 +659,9 @@ def buildObject(builder):
659
659
objCompiler .extend (builder .cmd )
660
660
proc = Popen (objCompiler )
661
661
rc = proc .wait ()
662
- if rc != 0 :
663
- sys .exit (rc )
662
+ _logger .debug ('buildObject rc = {0}' .format (rc ))
663
+ return rc
664
+
664
665
665
666
# This command does not have the executable with it
666
667
def buildAndAttachBitcode (builder ):
Original file line number Diff line number Diff line change 19
19
20
20
def main ():
21
21
try :
22
+ rc = 1
22
23
cmd = list (sys .argv )
23
24
cmd = cmd [1 :]
24
-
25
25
builder = getBuilder (cmd , False )
26
- buildObject (builder )
27
- if not os .environ .get ('WLLVM_CONFIGURE_ONLY' , False ):
26
+ rc = buildObject (builder )
27
+ if rc == 0 and not os .environ .get ('WLLVM_CONFIGURE_ONLY' , False ):
28
28
buildAndAttachBitcode (builder )
29
29
except :
30
30
pass
31
- return 0
31
+ return rc
32
32
33
33
34
34
if __name__ == '__main__' :
Original file line number Diff line number Diff line change 15
15
16
16
def main ():
17
17
try :
18
+ rc = 1
18
19
cmd = list (sys .argv )
19
20
cmd = cmd [1 :]
20
-
21
21
builder = getBuilder (cmd , True )
22
- buildObject (builder )
23
- if not os .environ .get ('WLLVM_CONFIGURE_ONLY' , False ):
22
+ rc = buildObject (builder )
23
+ if rc == 0 and not os .environ .get ('WLLVM_CONFIGURE_ONLY' , False ):
24
24
buildAndAttachBitcode (builder )
25
25
except :
26
26
pass
27
- return 0
27
+ return rc
28
28
29
29
30
30
if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments