Skip to content

Commit e75ef9b

Browse files
committed
extract-bc also writes a manifest file that lists all the .bc files used. This can be used to build an occam minifest file.
1 parent 0c164f0 commit e75ef9b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

extract-bc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ def handleExecutable(inputFile, outputFile, extractor, llvmLinker):
146146
if not fileNames:
147147
return 1
148148

149+
manifestFile = '{0}.occcam.manifest'.format(inputFile)
150+
151+
with open(manifestFile, 'w') as output:
152+
for f in fileNames:
153+
output.write('{0}\n'.format(f))
154+
149155
if outputFile == None:
150156
outputFile = inputFile + '.' + moduleExtension
151157

0 commit comments

Comments
 (0)