summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-04-11 00:24:33 +0200
committerAraq <rumpf_a@web.de>2015-04-11 10:01:08 +0200
commit1406f92a5f79add797574c3871841526477659c0 (patch)
tree89d7ce3275c1ef01951e7ad13a130502293da065 /compiler
parente4ee6ef4a3f0bb378642a534b1b3fe47c06eab3a (diff)
downloadNim-1406f92a5f79add797574c3871841526477659c0.tar.gz
re-enable git hash compiler info
Diffstat (limited to 'compiler')
-rw-r--r--compiler/commands.nim6
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 &