mirror of
https://github.com/danog/gllvm.git
synced 2025-01-22 17:01:17 +01:00
Fix the order of the arguments in the linking step.
This commit is contained in:
parent
8545a49940
commit
026fc69d24
@ -181,8 +181,10 @@ func compileTimeLinkFiles(compilerExecName string, pr parserResult, objFiles []s
|
||||
if outputFile == "" {
|
||||
outputFile = "a.out"
|
||||
}
|
||||
args := pr.LinkArgs
|
||||
args = append(args, objFiles...)
|
||||
args := objFiles
|
||||
for _, larg := range pr.LinkArgs {
|
||||
args = append(args, larg)
|
||||
}
|
||||
args = append(args, "-o", outputFile)
|
||||
success, err := execCmd(compilerExecName, args, "")
|
||||
if !success {
|
||||
|
Loading…
x
Reference in New Issue
Block a user