Skip to content

Commit

Permalink
Add --mm:refc when building nimble
Browse files Browse the repository at this point in the history
- without this flag `nimble lock` crashes. Note that tests are also compiled
with this flag so do the nimble packaged from Nim repo
  • Loading branch information
yyoncho committed Jun 20, 2023
1 parent 8eebcf2 commit a7550d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/nimble.nim.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
#--noNimblePath
--path:"$nim/"
--path:"./vendor/nim"
--mm:refc
-d:ssl
-d:nimcore # Enable 'gorge' in Nim's VM. See https://github.com/nim-lang/Nim/issues/8096
2 changes: 1 addition & 1 deletion tests/testscommon.nim
Original file line number Diff line number Diff line change
Expand Up @@ -207,5 +207,5 @@ putEnv("NIMBLE_TEST_BINARY_PATH", nimblePath)
# Always recompile.
block:
# Verbose name is used for exit code so assert is clearer
let (output, nimbleCompileExitCode) = execCmdEx("nim c --mm:refc " & nimbleCompilePath)
let (output, nimbleCompileExitCode) = execCmdEx("nim c " & nimbleCompilePath)
doAssert nimbleCompileExitCode == QuitSuccess, output

0 comments on commit a7550d5

Please sign in to comment.