Skip to content

Commit

Permalink
fix switcher successX
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Jan 13, 2020
1 parent 9f17c13 commit 4e3e4d9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/choosenimpkg/switcher.nim
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ from nimblepkg/packageinfo import getNameVersion

import cliparams, common

static:
proc compileProxyexe() =
var cmd = "nim c"
when defined(release):
const output = staticExec "nim c -d:release proxyexe"
else:
const output = staticExec "nim c proxyexe"
doAssert("operation successful" in output, "Couldn't compile proxyexe")
cmd.add " -d:release"
cmd.add " proxyexe"
let (output, exitCode) = gorgeEx(cmd)
doAssert exitCode == 0, $(output, cmd)

static: compileProxyexe()

const
proxyExe = staticRead("proxyexe".addFileExt(ExeExt))
Expand Down

0 comments on commit 4e3e4d9

Please sign in to comment.