Merge branch 'devel' of github.com:nim-lang/Nim into devel
This commit is contained in:
commit
9b2799bd64
1 changed files with 4 additions and 1 deletions
|
|
@ -677,11 +677,14 @@ proc getLinkCmd(projectfile, objfiles: string): string =
|
||||||
exefile = quoteShell(exefile)
|
exefile = quoteShell(exefile)
|
||||||
let linkOptions = getLinkOptions() & " " &
|
let linkOptions = getLinkOptions() & " " &
|
||||||
getConfigVar(cCompiler, ".options.linker")
|
getConfigVar(cCompiler, ".options.linker")
|
||||||
|
var linkTmpl = getConfigVar(cCompiler, ".linkTmpl")
|
||||||
|
if linkTmpl.len == 0:
|
||||||
|
linkTmpl = CC[cCompiler].linkTmpl
|
||||||
result = quoteShell(result % ["builddll", builddll,
|
result = quoteShell(result % ["builddll", builddll,
|
||||||
"buildgui", buildgui, "options", linkOptions, "objfiles", objfiles,
|
"buildgui", buildgui, "options", linkOptions, "objfiles", objfiles,
|
||||||
"exefile", exefile, "nim", getPrefixDir(), "lib", libpath])
|
"exefile", exefile, "nim", getPrefixDir(), "lib", libpath])
|
||||||
result.add ' '
|
result.add ' '
|
||||||
addf(result, CC[cCompiler].linkTmpl, ["builddll", builddll,
|
addf(result, linkTmpl, ["builddll", builddll,
|
||||||
"buildgui", buildgui, "options", linkOptions,
|
"buildgui", buildgui, "options", linkOptions,
|
||||||
"objfiles", objfiles, "exefile", exefile,
|
"objfiles", objfiles, "exefile", exefile,
|
||||||
"nim", quoteShell(getPrefixDir()),
|
"nim", quoteShell(getPrefixDir()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue