File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -200,15 +200,18 @@ def getCommand(self):
200
200
201
201
202
202
class ClangBuilder (BuilderBase ):
203
- def getBitcodeCompiler (self ):
204
- cc = self .getCompiler ()
205
- retval = cc + ['-emit-llvm' ]
203
+
204
+ def getBitcodeGenerationFlags (self ):
206
205
# iam: If the environment variable LLVM_BITCODE_GENERATION_FLAGS is set we will add them to the
207
206
# bitcode generation step
208
207
bitcodeFLAGS = os .getenv ('LLVM_BITCODE_GENERATION_FLAGS' )
209
208
if bitcodeFLAGS :
210
- retval = retval + bitcodeFLAGS .split ()
211
- return retval
209
+ return bitcodeFLAGS .split ()
210
+ return []
211
+
212
+ def getBitcodeCompiler (self ):
213
+ cc = self .getCompiler ()
214
+ return cc + ['-emit-llvm' ] + self .getBitcodeGenerationFlags ()
212
215
213
216
def getCompiler (self ):
214
217
if self .mode == "wllvm++" :
You can’t perform that action at this time.
0 commit comments