mirror of
https://github.com/danog/gllvm.git
synced 2024-11-26 19:14:43 +01:00
fix linking stage arguments order
This commit is contained in:
parent
3eedff25c7
commit
b0014b15be
@ -127,8 +127,8 @@ func linkFiles(compilerExecName string, pr ParserResult, objFiles []string) {
|
||||
if outputFile == "" {
|
||||
outputFile = "a.out"
|
||||
}
|
||||
args := append(pr.ObjectFiles, objFiles...)
|
||||
args = append(args, pr.LinkArgs...)
|
||||
args := append(pr.ObjectFiles, pr.LinkArgs...)
|
||||
args = append(args, objFiles...)
|
||||
args = append(args, "-o", outputFile)
|
||||
if execCmd(compilerExecName, args) {
|
||||
log.Fatal("Failed to link.")
|
||||
|
Loading…
Reference in New Issue
Block a user