aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Yakimowich-Payne <jyapayne@gmail.com>2020-05-10 10:42:01 -0600
committergenotrance <dev@genotrance.com>2020-05-10 15:43:30 -0500
commit3719607355d7041d8f258280395b4830c9765f54 (patch)
treeffc95723bf3d097fc1fa7c90386f1b41d9f49991
parent865ac56c20c6683b2a352aec6263dc9c817899c5 (diff)
downloadnimterop-3719607355d7041d8f258280395b4830c9765f54.tar.gz
nimterop-3719607355d7041d8f258280395b4830c9765f54.zip
Don't call bash for unix because it can mess up the configure script
-rw-r--r--nimterop/build.nim16
1 files changed, 12 insertions, 4 deletions
diff --git a/nimterop/build.nim b/nimterop/build.nim
index 5978074..48557f3 100644
--- a/nimterop/build.nim
+++ b/nimterop/build.nim
@@ -482,8 +482,12 @@ proc configure*(path, check: string, flags = "") =
if fileExists(path / i):
echo "# Running autogen.sh"
- echoDebug execAction(
- &"cd {(path / i).parentDir().sanitizePath} && bash ./autogen.sh").output
+ when defined(unix):
+ echoDebug execAction(
+ &"cd {(path / i).parentDir().sanitizePath} && ./autogen.sh").output
+ else:
+ echoDebug execAction(
+ &"cd {(path / i).parentDir().sanitizePath} && bash ./autogen.sh").output
break
@@ -499,8 +503,12 @@ proc configure*(path, check: string, flags = "") =
if fileExists(path / "configure"):
echo "# Running configure " & flags
- var
- cmd = &"cd {path.sanitizePath} && bash ./configure"
+ when defined(unix):
+ var
+ cmd = &"cd {path.sanitizePath} && ./configure"
+ else:
+ var
+ cmd = &"cd {path.sanitizePath} && bash ./configure"
if flags.len != 0:
cmd &= &" {flags}"