Missing spaces when compiling testament and nim_dbg. (#18403)
This commit is contained in:
parent
19263f2775
commit
28a4814019
2 changed files with 4 additions and 4 deletions
4
koch.nim
4
koch.nim
|
|
@ -215,14 +215,14 @@ proc buildTools(args: string = "") =
|
||||||
options = "-d:release " & args)
|
options = "-d:release " & args)
|
||||||
when defined(windows): buildVccTool(args)
|
when defined(windows): buildVccTool(args)
|
||||||
bundleNimpretty(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
|
# pre-packages a debug version of nim which can help in many cases investigate issuses
|
||||||
# withouth having to rebuild compiler.
|
# withouth having to rebuild compiler.
|
||||||
# `-d:nimDebugUtils` only makes sense when temporarily editing/debugging 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
|
# `-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
|
# `--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) =
|
proc nsis(latest: bool; args: string) =
|
||||||
bundleNimbleExe(latest, args)
|
bundleNimbleExe(latest, args)
|
||||||
|
|
|
||||||
|
|
@ -913,7 +913,7 @@ proc getTime*(): Time {.tags: [TimeEffect], benign.} =
|
||||||
result = initTime(ts.tv_sec.int64, ts.tv_nsec.int)
|
result = initTime(ts.tv_sec.int64, ts.tv_nsec.int)
|
||||||
elif defined(windows):
|
elif defined(windows):
|
||||||
var f {.noinit.}: FILETIME
|
var f {.noinit.}: FILETIME
|
||||||
getSystemTimePreciseAsFileTime(f)
|
getSystemTimeAsFileTime(f)
|
||||||
result = fromWinTime(rdFileTime(f))
|
result = fromWinTime(rdFileTime(f))
|
||||||
|
|
||||||
proc `-`*(a, b: Time): Duration {.operator, extern: "ntDiffTime".} =
|
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
|
toBiggestFloat(ts.tv_nsec.int64) / 1_000_000_000
|
||||||
elif defined(windows):
|
elif defined(windows):
|
||||||
var f {.noinit.}: winlean.FILETIME
|
var f {.noinit.}: winlean.FILETIME
|
||||||
getSystemTimePreciseAsFileTime(f)
|
getSystemTimeAsFileTime(f)
|
||||||
var i64 = rdFileTime(f) - epochDiff
|
var i64 = rdFileTime(f) - epochDiff
|
||||||
var secs = i64 div rateDiff
|
var secs = i64 div rateDiff
|
||||||
var subsecs = i64 mod rateDiff
|
var subsecs = i64 mod rateDiff
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue