fixes warnings when building csources (#21194)
* replace `symbolfiles` with `incremental`; fixes warnings when build csources * fixes self conversion warnings
This commit is contained in:
parent
4b63ac4b87
commit
646932b3f3
1 changed files with 6 additions and 6 deletions
|
|
@ -168,11 +168,11 @@ proc parseCmdLine(c: var ConfigData) =
|
||||||
next(p)
|
next(p)
|
||||||
var kind = p.kind
|
var kind = p.kind
|
||||||
var key = p.key
|
var key = p.key
|
||||||
var val = p.val.string
|
var val = p.val
|
||||||
case kind
|
case kind
|
||||||
of cmdArgument:
|
of cmdArgument:
|
||||||
if c.actions == {}:
|
if c.actions == {}:
|
||||||
for a in split(normalize(key.string), {';', ','}):
|
for a in split(normalize(key), {';', ','}):
|
||||||
case a
|
case a
|
||||||
of "csource": incl(c.actions, actionCSource)
|
of "csource": incl(c.actions, actionCSource)
|
||||||
of "scripts": incl(c.actions, actionScripts)
|
of "scripts": incl(c.actions, actionScripts)
|
||||||
|
|
@ -183,11 +183,11 @@ proc parseCmdLine(c: var ConfigData) =
|
||||||
of "deb": incl(c.actions, actionDeb)
|
of "deb": incl(c.actions, actionDeb)
|
||||||
else: quit(Usage)
|
else: quit(Usage)
|
||||||
else:
|
else:
|
||||||
c.infile = addFileExt(key.string, "ini")
|
c.infile = addFileExt(key, "ini")
|
||||||
c.nimArgs = cmdLineRest(p).string
|
c.nimArgs = cmdLineRest(p)
|
||||||
break
|
break
|
||||||
of cmdLongOption, cmdShortOption:
|
of cmdLongOption, cmdShortOption:
|
||||||
case normalize(key.string)
|
case normalize(key)
|
||||||
of "help", "h":
|
of "help", "h":
|
||||||
stdout.write(Usage)
|
stdout.write(Usage)
|
||||||
quit(0)
|
quit(0)
|
||||||
|
|
@ -544,7 +544,7 @@ proc srcdist(c: var ConfigData) =
|
||||||
var dir = getOutputDir(c) / buildDir(osA, cpuA)
|
var dir = getOutputDir(c) / buildDir(osA, cpuA)
|
||||||
if dirExists(dir): removeDir(dir)
|
if dirExists(dir): removeDir(dir)
|
||||||
createDir(dir)
|
createDir(dir)
|
||||||
var cmd = ("$# compile -f --symbolfiles:off --compileonly " &
|
var cmd = ("$# compile -f --incremental:off --compileonly " &
|
||||||
"--gen_mapping --cc:gcc --skipUserCfg" &
|
"--gen_mapping --cc:gcc --skipUserCfg" &
|
||||||
" --os:$# --cpu:$# $# $#") %
|
" --os:$# --cpu:$# $# $#") %
|
||||||
[findNim(), osname, cpuname, c.nimArgs, c.mainfile]
|
[findNim(), osname, cpuname, c.nimArgs, c.mainfile]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue