Skip to content

Commit 5dc8427

Browse files
committed
Recognize "*.os" files as object files.
This is the default extension used by SCons for object files with position-independent code for inclusion in shared libraries.
1 parent 2af7a03 commit 5dc8427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def attachBitcodePathToObject(bcPath, outFileName):
184184
# Don't try to attach a bitcode path to a binary. Unfortunately
185185
# that won't work.
186186
(root, ext) = os.path.splitext(outFileName)
187-
if ext != ".o" and ext != '.lo':
187+
if ext not in ('.o', '.lo', '.os'):
188188
return
189189

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

0 commit comments

Comments
 (0)