diff options
author | Araq <rumpf_a@web.de> | 2015-04-11 00:24:33 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-04-11 10:01:08 +0200 |
commit | 1406f92a5f79add797574c3871841526477659c0 (patch) | |
tree | 89d7ce3275c1ef01951e7ad13a130502293da065 /compiler | |
parent | e4ee6ef4a3f0bb378642a534b1b3fe47c06eab3a (diff) | |
download | Nim-1406f92a5f79add797574c3871841526477659c0.tar.gz |
re-enable git hash compiler info
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/commands.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 69b1c1f1a..5b5f461ef 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -80,9 +80,9 @@ proc writeVersionInfo(pass: TCmdLinePass) = platform.OS[platform.hostOS].name, CPU[platform.hostCPU].name])) - discard """const gitHash = gorge("git log -n 1 --format=%H") - if gitHash.strip.len == 40: - msgWriteln("git hash: " & gitHash)""" + const gitHash = gorge("git log -n 1 --format=%H").strip + when gitHash.len == 40: + msgWriteln("git hash: " & gitHash) msgWriteln("active boot switches:" & usedRelease & usedAvoidTimeMachine & usedTinyC & usedGnuReadline & usedNativeStacktrace & usedNoCaas & |