Fixed min compile command
h3rald h3rald@h3rald.com
Sun, 04 Feb 2024 10:45:06 +0100
4 files changed,
5 insertions(+),
2 deletions(-)
M
min.nim
→
min.nim
@@ -76,7 +76,7 @@ result = result.concat(minFile(f, "compile", main = false))
result.add "### $# (main)" % i.filename result = result.concat(i.compileFile(main)) writeFile(nimFile, result.join("\n")) - let cmd = "nim c --threadAnalysis:off $#$#" % [NIMOPTIONS&" ", nimFile] + let cmd = "nim c --threadAnalysis:off --mm:refc $#$#" % [NIMOPTIONS&" ", nimFile] logging.notice("Calling Nim compiler:") logging.notice(cmd) discard execShellCmd(cmd)
M
minpkg/core/parser.nim
→
minpkg/core/parser.nim
@@ -878,8 +878,9 @@ result = @[op&"MinValue(kind: minSymbol, symVal: "&p.a.escapeEx&")"]
p.a = "" discard getToken(p) of tkLineComment, tkBlockComment, tkLineDocComment, tkBlockDocComment, tkSpace: - discard getToken(p) + eat(p, p.token) result = @[""] + #discard getToken(p) #result = p.compileMinValue(i, push, indent) else: raiseUndefined(p, "Undefined value: '"&p.a&"'")
M
next-release.md
→
next-release.md
@@ -13,5 +13,6 @@ ### Fixes and Improvements
- Added check to prevent installing local managed modules in the HOME directory or $HOME/mmm. - Changed `tokenize` symbol so that it returns the full token, including delimiters (for strings and comments). +- Fixed regression in `min compile` command introduced in the previews version due to parses changes.
M
site/contents/news/v0.43.0.md
→
site/contents/news/v0.43.0.md
@@ -27,3 +27,4 @@ ## Fixes and Improvements
- Added check to prevent installing local managed modules in the HOME directory or $HOME/mmm. - Changed {#link-operator||global||tokenize#} symbol so that it returns the full token, including delimiters (for strings and comments). +- Fixed regression in `min compile` command introduced in the previews version due to parses changes.