From af3dbce840d0d0956663ffb20012329a4c22d5dd Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 1 Aug 2023 19:05:45 +0200 Subject: Fixes & workarounds to compile on Nim 2.0.0 * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.) --- nim.cfg | 1 + 1 file changed, 1 insertion(+) (limited to 'nim.cfg') diff --git a/nim.cfg b/nim.cfg index f81553bc..03c3173f 100644 --- a/nim.cfg +++ b/nim.cfg @@ -4,3 +4,4 @@ --import:"utils/eprint" --experimental:"overloadableEnums" --warning:Effect:off +--mm:refc -- cgit 1.4.1-2-gfad0