Skip to content

Commit 4d604b6

Browse files
author
Dan Liew
committed
Added helpful comment about how driver/as is invoked.
1 parent 72794f1 commit 4d604b6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

driver/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ def __init__(self, cmd, isCxx, prefixPath=None):
343343
def getBitcodeCompiler(self):
344344
pth = os.getenv('LLVM_DRAGONEGG_PLUGIN')
345345
cc = self.getCompiler()
346+
# We use '-B' to tell gcc where to look for an assembler.
347+
# When we build LLVM bitcode we do not want to use the GNU assembler,
348+
# instead we want gcc to use our own assembler (see driver/as).
346349
return cc + ['-B', driverDir, '-fplugin={0}'.format(pth),
347350
'-fplugin-arg-dragonegg-emit-ir']
348351

0 commit comments

Comments
 (0)