Skip to content

Commit

Permalink
use release version (nim-lang#15400)
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored and mildred committed Jan 11, 2021
1 parent d77a13c commit 4b7880c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/nimpaths.nim
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ proc interp*(path: string, nimr: string): string =
doAssert '$' notin result, $(path, nimr, result) # avoids un-interpolated variables in output

proc getDocHacksJs*(nimr: string, nim = getCurrentCompilerExe(), forceRebuild = false): string =
## return absolute path to dochhack.js, rebuilding if it doesn't exist or if
## return absolute path to dochack.js, rebuilding if it doesn't exist or if
## `forceRebuild`.
let docHackJs2 = docHackJs.interp(nimr = nimr)
if forceRebuild or not docHackJs2.fileExists:
let cmd = "$nim js $file" % ["nim", nim.quoteShell, "file", docHackNim.interp(nimr = nimr).quoteShell]
let cmd = "$nim js -d:release $file" % ["nim", nim.quoteShell, "file", docHackNim.interp(nimr = nimr).quoteShell]
echo "getDocHacksJs: cmd: " & cmd
doAssert execShellCmd(cmd) == 0, $(cmd)
doAssert docHackJs2.fileExists
Expand Down

0 comments on commit 4b7880c

Please sign in to comment.