We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ba2815 commit 13d2d5eCopy full SHA for 13d2d5e
wllvm/compilers.py
@@ -202,7 +202,13 @@ def getCommand(self):
202
class ClangBuilder(BuilderBase):
203
def getBitcodeCompiler(self):
204
cc = self.getCompiler()
205
- return cc + ['-emit-llvm']
+ retval = cc + ['-emit-llvm']
206
+ # iam: If the environment variable LLVM_BITCODE_GENERATION_FLAGS is set we will add them to the
207
+ # bitcode generation step
208
+ bitcodeFLAGS = os.getenv('LLVM_BITCODE_GENERATION_FLAGS')
209
+ if bitcodeFLAGS:
210
+ retval = retval + bitcodeFLAGS.split()
211
+ return retval
212
213
def getCompiler(self):
214
if self.mode == "wllvm++":
0 commit comments