From 20fb49fdd0586f566314155e7a82c7d6ce9e35b8 Mon Sep 17 00:00:00 2001 From: tersec Date: Wed, 14 Feb 2024 02:28:29 +0000 Subject: [PATCH] test refc in CI in Nim 2.0 and later (#209) --- json_rpc.nimble | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/json_rpc.nimble b/json_rpc.nimble index 3317b54..6bd36ce 100644 --- a/json_rpc.nimble +++ b/json_rpc.nimble @@ -1,5 +1,5 @@ # json-rpc -# Copyright (c) 2019-2023 Status Research & Development GmbH +# Copyright (c) 2019-2024 Status Research & Development GmbH # Licensed under either of # * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE)) # * MIT license ([LICENSE-MIT](LICENSE-MIT)) @@ -44,6 +44,8 @@ proc build(args, path: string) = proc run(args, path: string) = build args & " -r", path + if (NimMajor, NimMinor) > (1, 6): + build args & " --mm:refc -r", path proc buildBinary(name: string, srcDir = "./", params = "", cmdParams = "") = if not dirExists "build":