Skip to content

Commit 72794f1

Browse files
author
Dan Liew
committed
Emit warning in attachBitcodePathToObject() if we encounter a non-object
file instead of being silent.
1 parent 4ed6a5b commit 72794f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

driver/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ def attachBitcodePathToObject(bcPath, outFileName):
244244
# that won't work.
245245
(root, ext) = os.path.splitext(outFileName)
246246
if ext not in ('.o', '.lo', '.os'):
247+
_logger.warning('Cannot attach bitcode path to "{0}"'.format(outFileName))
247248
return
248249

249250
# Now just build a temporary text file with the full path to the

0 commit comments

Comments
 (0)