diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-09-29 00:09:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-28 18:09:58 +0200 |
commit | 8761599aade64f5953ef7d3c4cea005a0c459355 (patch) | |
tree | e31167b9c6a6ec437756f983da87c78210e8ec84 /compiler/options.nim | |
parent | 4fffa0960f6c17e9e1e6a20665c97ac34ea678bb (diff) | |
download | Nim-8761599aade64f5953ef7d3c4cea005a0c459355.tar.gz |
fixes #22763; nimcache in nim.cfg uses the relative path to the config file (#22764)
fixes #22763
Diffstat (limited to 'compiler/options.nim')
-rw-r--r-- | compiler/options.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/options.nim b/compiler/options.nim index c18ca92dc..a2f50b12b 100644 --- a/compiler/options.nim +++ b/compiler/options.nim @@ -421,6 +421,8 @@ type expandNodeResult*: string expandPosition*: TLineInfo + currentConfigDir*: string # used for passPP only; absolute dir + proc parseNimVersion*(a: string): NimVer = # could be moved somewhere reusable @@ -585,6 +587,7 @@ proc newConfigRef*(): ConfigRef = maxLoopIterationsVM: 10_000_000, vmProfileData: newProfileData(), spellSuggestMax: spellSuggestSecretSauce, + currentConfigDir: "" ) initConfigRefCommon(result) setTargetFromSystem(result.target) |