diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2020-02-26 01:44:23 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-26 10:44:23 +0100 |
commit | 11db28bc617b2c2280401980051898fd8bf58190 (patch) | |
tree | c53b8df7dd544491309f839d31439e8880cfbbd9 /koch.nim | |
parent | bd90199a2fd37568a5f5a6c7c394b160b229e90c (diff) | |
download | Nim-11db28bc617b2c2280401980051898fd8bf58190.tar.gz |
runCI: logs now show CPU/OS/etc info to be self contained (#13486)
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/koch.nim b/koch.nim index e3ef73acd..75d504758 100644 --- a/koch.nim +++ b/koch.nim @@ -472,9 +472,14 @@ proc xtemp(cmd: string) = finally: copyExe(d / "bin" / "nim_backup".exe, d / "bin" / "nim".exe) +proc hostInfo(): string = + "hostOS: $1, hostCPU: $2, int: $3, float: $4, cpuEndian: $5, cwd: $6" % + [hostOS, hostCPU, $int.sizeof, $float.sizeof, $cpuEndian, getCurrentDir()] + proc runCI(cmd: string) = doAssert cmd.len == 0, cmd # avoid silently ignoring echo "runCI:", cmd + echo hostInfo() # note(@araq): Do not replace these commands with direct calls (eg boot()) # as that would weaken our testing efforts. when defined(posix): # appveyor (on windows) didn't run this |