Closed zqqw closed 3 years ago
diff --git a/Makefile b/Makefile
index 04ce4cb..045c3e8 100644
--- a/Makefile
+++ b/Makefile
@@ -65,7 +65,9 @@ NIM_OPTIONS = \
--hint'[Conf]':off \
--hint'[Processing]':off \
--hint'[Link]':off \
- --hint'[SuccessX]':off
+ --hint'[SuccessX]':off \
+ -d:nimEnableHashRef
+
https://github.com/nim-lang/Nim/blob/devel/changelog.md
Doesn't build with nim-git though, so that doesn't fix this.
The error was introduced in nim-lang with this commit: https://github.com/nim-lang/Nim/commit/d32ab61e61a9c8875cda926fb76e12dc8e8b9a23
I think it's the addition of the inline pragma in that patch that causes the build failure, editing /usr/lib/nim/pure/hashes.nim seems to reveal so far.
#proc hash*[T: tuple | object | proc](x: T): Hash {.inline.} =
proc hash*[T: tuple | object | proc](x: T): Hash =
Fixed in Nim: https://github.com/nim-lang/Nim/commit/0a4858dc59b1464d4057822d60e888fa4403223e (Although that fix may be further revised later)
You need to modify the nim-git PKGBUILD to build it at present to get this error.