Skip to content

Commit

Permalink
Remove nimble from nim compilation Fixes #1175
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgomez committed Jul 4, 2024
1 parent 06cbbb8 commit 72d9879
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nimblepkg/nimenv.nim
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ proc compileNim*(options: Options, nimDest: string, v: VersionRange) =
if not keepCsources:
removeDir workspace / csourcesVersion / "c_code"
let pathEntry = workspace / nimDest / "bin"
#remove nimble so it doesnt interfer with the current one:
removeFile "bin" / "nimble".addFileExt(ExeExt)
when defined(windows):
writeFile "activate.bat", BatchFile % pathEntry.replace('/', '\\')
else:
Expand Down

0 comments on commit 72d9879

Please sign in to comment.