summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorEndeg <vodomerkin@gmail.com>2021-06-30 23:19:22 +0600
committerGitHub <noreply@github.com>2021-06-30 10:19:22 -0700
commit28a4814019ea5d985d323def3766fe7f44f2e3e1 (patch)
tree11139b4e02c2521386cd2cfa10715f11c8401a3e
parent19263f27756e56026fe8d1ac05966b84010ae8d1 (diff)
downloadNim-28a4814019ea5d985d323def3766fe7f44f2e3e1.tar.gz
Missing spaces when compiling testament and nim_dbg. (#18403)
-rw-r--r--koch.nim4
-rw-r--r--lib/pure/times.nim4
2 files changed, 4 insertions, 4 deletions
diff --git a/koch.nim b/koch.nim
index d3957069b..4ba0d0eb5 100644
--- a/koch.nim
+++ b/koch.nim
@@ -215,14 +215,14 @@ proc buildTools(args: string = "") =
                  options = "-d:release " & args)
   when defined(windows): buildVccTool(args)
   bundleNimpretty(args)
-  nimCompileFold("Compile testament", "testament/testament.nim", options = "-d:release" & args)
+  nimCompileFold("Compile testament", "testament/testament.nim", options = "-d:release " & args)
 
   # pre-packages a debug version of nim which can help in many cases investigate issuses
   # withouth having to rebuild compiler.
   # `-d:nimDebugUtils` only makes sense when temporarily editing/debugging compiler
   # `-d:debug` should be changed to a flag that doesn't require re-compiling nim
   # `--opt:speed` is a sensible default even for a debug build, it doesn't affect nim stacktraces
-  nimCompileFold("Compile nim_dbg", "compiler/nim.nim", options = "--opt:speed --stacktrace -d:debug --stacktraceMsgs -d:nimCompilerStacktraceHints" & args, outputName = "nim_dbg")
+  nimCompileFold("Compile nim_dbg", "compiler/nim.nim", options = "--opt:speed --stacktrace -d:debug --stacktraceMsgs -d:nimCompilerStacktraceHints " & args, outputName = "nim_dbg")
 
 proc nsis(latest: bool; args: string) =
   bundleNimbleExe(latest, args)
diff --git a/lib/pure/times.nim b/lib/pure/times.nim
index fb48a199c..fcdd4ec8d 100644
--- a/lib/pure/times.nim
+++ b/lib/pure/times.nim
@@ -913,7 +913,7 @@ proc getTime*(): Time {.tags: [TimeEffect], benign.} =
     result = initTime(ts.tv_sec.int64, ts.tv_nsec.int)
   elif defined(windows):
     var f {.noinit.}: FILETIME
-    getSystemTimePreciseAsFileTime(f)
+    getSystemTimeAsFileTime(f)
     result = fromWinTime(rdFileTime(f))
 
 proc `-`*(a, b: Time): Duration {.operator, extern: "ntDiffTime".} =
@@ -2596,7 +2596,7 @@ proc epochTime*(): float {.tags: [TimeEffect].} =
       toBiggestFloat(ts.tv_nsec.int64) / 1_000_000_000
   elif defined(windows):
     var f {.noinit.}: winlean.FILETIME
-    getSystemTimePreciseAsFileTime(f)
+    getSystemTimeAsFileTime(f)
     var i64 = rdFileTime(f) - epochDiff
     var secs = i64 div rateDiff
     var subsecs = i64 mod rateDiff