Make elf file go into build dir
This commit is contained in:
parent
45a6622cb1
commit
d6d184ed64
1 changed files with 4 additions and 4 deletions
|
|
@ -102,7 +102,10 @@ proc buildElf(buildInfo: BuildInfo): string =
|
||||||
var cmd = "nim $args c " &
|
var cmd = "nim $args c " &
|
||||||
"--os:nintendoswitch " & buildInfo.filename.quoteShell
|
"--os:nintendoswitch " & buildInfo.filename.quoteShell
|
||||||
|
|
||||||
var args = ""
|
result = buildInfo.outDir/buildInfo.name & ".elf"
|
||||||
|
|
||||||
|
var args = " --out=" & quoteShell(result)
|
||||||
|
args &= " --nimcache=nimcache"
|
||||||
if buildInfo.release:
|
if buildInfo.release:
|
||||||
args &= " -d:release"
|
args &= " -d:release"
|
||||||
if buildInfo.force:
|
if buildInfo.force:
|
||||||
|
|
@ -113,11 +116,8 @@ proc buildElf(buildInfo: BuildInfo): string =
|
||||||
args &= " --passC='" & buildInfo.includes & "'"
|
args &= " --passC='" & buildInfo.includes & "'"
|
||||||
|
|
||||||
cmd = cmd % ["args", args]
|
cmd = cmd % ["args", args]
|
||||||
|
|
||||||
execProc cmd, buildInfo.verbose
|
execProc cmd, buildInfo.verbose
|
||||||
|
|
||||||
result = buildInfo.filename.splitFile().dir / buildInfo.name & ".elf"
|
|
||||||
|
|
||||||
proc buildNso(buildInfo: BuildInfo): string =
|
proc buildNso(buildInfo: BuildInfo): string =
|
||||||
let name = buildInfo.name
|
let name = buildInfo.name
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue