summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskari Timperi <oskari.timperi@iki.fi>2018-03-12 19:54:18 +0200
committerOskari Timperi <oskari.timperi@iki.fi>2018-03-12 19:54:18 +0200
commit2a3380a93c95cbeb75e49a1e31450c330cf80024 (patch)
tree9ccfc5eb2b734e1cd467712ab91323a932e27dcd
parent82c6972242ceff5c0d3df61aae45c2501990f9cf (diff)
downloadtommath-nim-2a3380a93c95cbeb75e49a1e31450c330cf80024.tar.gz
tommath-nim-2a3380a93c95cbeb75e49a1e31450c330cf80024.zip
Don't clone libtommath if TOMMATH_NO_CLONE envvar is set
-rw-r--r--tommath.nimble4
1 files changed, 3 insertions, 1 deletions
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"