Skip to content

Commit ebe6f10

Browse files
committed
Can extract from a mach object file no wuckin' furries.
1 parent 8356a70 commit ebe6f10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extract-bc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def process_file_darwin(inputFile, outputFile, llvmLinker, llvmArchiver):
364364
arCmd = ['ar', '-x', '-v'] if verboseFlag else ['ar', '-x']
365365
ofileType = FileType.MACH_OBJECT
366366

367-
if ft == FileType.MACH_EXECUTABLE or ft == FileType.MACH_SHARED:
367+
if ft == FileType.MACH_EXECUTABLE or ft == FileType.MACH_SHARED or ft == FileType.MACH_OBJECT:
368368
logging.info('Generating LLVM Bitcode module')
369369
return handleExecutable(inputFile, outputFile, extractor, llvmLinker)
370370
elif ft == FileType.ARCHIVE:

0 commit comments

Comments
 (0)