From 2a3380a93c95cbeb75e49a1e31450c330cf80024 Mon Sep 17 00:00:00 2001 From: Oskari Timperi Date: Mon, 12 Mar 2018 19:54:18 +0200 Subject: Don't clone libtommath if TOMMATH_NO_CLONE envvar is set --- tommath.nimble | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tommath.nimble b/tommath.nimble index a395249..f36812b 100644 --- a/tommath.nimble +++ b/tommath.nimble @@ -11,5 +11,7 @@ srcDir = "src" requires "nim >= 0.18.0" before install: - exec "git clone --branch v1.0.1 https://github.com/libtom/libtommath.git /tmp/source-libtommath" + if not existsEnv("TOMMATH_NO_CLONE"): + exec "git clone --branch v1.0.1 https://github.com/libtom/libtommath.git /tmp/source-libtommath" + exec "nim c -r tools/libtommath.nim" -- cgit v1.2.3