dependencyresolver.nim: make pkgList threadvar

This commit is contained in:
Anna “CyberTailor” 2022-07-06 22:48:44 +05:00
parent b54279811e
commit 221820d53c
Signed by: CyberTaIlor
GPG Key ID: E7B76EDC50864BB1

View File

@ -56,7 +56,7 @@ proc getNimVersion*(options: Options): Version =
proc getPath*(depPkg: PkgTuple, options: Options): string =
## Return a path for using with the `--path` Nim compiler option.
var pkgList {.global.}: seq[Package] = @[]
var pkgList {.threadvar.}: seq[Package]
once: pkgList = initPkgList(options)
echo "-- Checking for " & depPkg.name