aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGanesh Viswanathan <dev@genotrance.com>2019-01-19 02:19:28 -0600
committerGanesh Viswanathan <dev@genotrance.com>2019-01-19 02:19:28 -0600
commit1748279553e7a693e6bcf3aa5857cf7d65e7fc30 (patch)
tree827ddc1d842467fff38f191e1d9489dc46465663
parent7bc53080e8c2d185dd7e0289ec2829e65643f6b9 (diff)
downloadnimterop-1748279553e7a693e6bcf3aa5857cf7d65e7fc30.tar.gz
nimterop-1748279553e7a693e6bcf3aa5857cf7d65e7fc30.zip
Caching fix for OSX
-rw-r--r--nimterop/cimport.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/nimterop/cimport.nim b/nimterop/cimport.nim
index ce21af2..3d337c7 100644
--- a/nimterop/cimport.nim
+++ b/nimterop/cimport.nim
@@ -59,8 +59,10 @@ proc getFileDate(fullpath: string): string =
cmd =
when defined(Windows):
&"cmd /c for %a in ({fullpath.quoteShell}) do echo %~ta"
- else:
+ elif defined(Linux):
&"stat -c %y {fullpath.quoteShell}"
+ elif defined(OSX):
+ &"stat -f %m {fullpath.quoteShell}"
(result, ret) = gorgeEx(cmd)