File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import sys
15
15
from utils import *
16
16
from subprocess import *
17
17
from popenwrapper import Popen
18
+ import logconfig
18
19
19
20
20
21
class BCFilter (ArgumentListFilter ):
33
34
except ValueError :
34
35
infile = "-"
35
36
37
+ # set llvm-as
38
+ llvmAssembler = 'llvm-as'
39
+ if os .getenv (llvmCompilerPathEnv ):
40
+ llvmAssembler = os .path .join (os .getenv (llvmCompilerPathEnv ), llvmAssembler )
41
+
36
42
# Now compile this llvm assembly file into a bitcode file. The output
37
43
# filename is the same as the object with a .bc appended
38
44
(dirs , filename ) = os .path .split (argFilter .outFileName )
39
45
bcfilename = '.{0}.bc' .format (filename )
40
46
bcPath = os .path .join (dirs , bcfilename )
41
- fakeAssembler = ['llvm-as' , infile , '-o' , bcPath ]
42
- asmProc = subprocess . Popen (fakeAssembler )
47
+ fakeAssembler = [llvmAssembler , infile , '-o' , bcPath ]
48
+ asmProc = Popen (fakeAssembler )
43
49
realRet = asmProc .wait ()
44
50
45
51
if realRet != 0 :
You can’t perform that action at this time.
0 commit comments