Skip to content

Commit 5414f1e

Browse files
committed
Xclang is a compile flag ...
1 parent e14a5b7 commit 5414f1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

driver/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
_logger = logging.getLogger(__name__)
4444

4545
# Flag for debugging
46-
DEBUG = False
46+
DEBUG = True #False
4747

4848

4949
# This class applies filters to GCC argument lists. It has a few
@@ -170,7 +170,7 @@ def __init__(self, inputList, exactMatches={}, patternMatches={}):
170170
'-Ofast' : (0, ArgumentListFilter.compileUnaryCallback),
171171
'-Og' : (0, ArgumentListFilter.compileUnaryCallback),
172172
# Component-specifiers
173-
'-Xclang' : (1, ArgumentListFilter.defaultBinaryCallback),
173+
'-Xclang' : (1, ArgumentListFilter.compileBinaryCallback),
174174
'-Xpreprocessor' : (1, ArgumentListFilter.defaultBinaryCallback),
175175
'-Xassembler' : (1, ArgumentListFilter.defaultBinaryCallback),
176176
'-Xlinker' : (1, ArgumentListFilter.defaultBinaryCallback),
@@ -697,6 +697,8 @@ def buildBitcodeFile(builder, srcFile, bcFile):
697697
bcc.extend(af.compileArgs)
698698
bcc.extend(['-c', srcFile])
699699
bcc.extend(['-o', bcFile])
700+
if DEBUG:
701+
print bcc
700702
proc = Popen(bcc)
701703
rc = proc.wait()
702704
if rc != 0:

0 commit comments

Comments
 (0)