From 1748279553e7a693e6bcf3aa5857cf7d65e7fc30 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Sat, 19 Jan 2019 02:19:28 -0600 Subject: Caching fix for OSX --- nimterop/cimport.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3