Skip to content

Commit c1df7a7

Browse files
corrected order problem with linker
When using the linker, you must first put the .o file, before including any library. Failing to do so will make the link fail
1 parent 0b182f9 commit c1df7a7

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
@@ -680,8 +680,8 @@ def linkFiles(builder, objectFiles):
680680
af = builder.getBitcodeArglistFilter()
681681
outputFile = af.getOutputFilename()
682682
cc = builder.getCompiler()
683-
cc.extend(af.objectFiles)
684683
cc.extend(objectFiles)
684+
cc.extend(af.objectFiles)
685685
cc.extend(af.linkArgs)
686686
cc.extend(['-o', outputFile])
687687
proc = Popen(cc)

0 commit comments

Comments
 (0)