summary refs log tree commit diff stats
path: root/tools/vccexe
diff options
context:
space:
mode:
authorNeelesh Chandola <neelesh.chandola@outlook.com>2018-12-13 16:44:25 +0530
committerAndreas Rumpf <rumpf_a@web.de>2018-12-13 12:14:25 +0100
commit6bdf7fdbce49a4e356e62ed4429cfa6189185f15 (patch)
treec194fa62cacf9325469b2eb327847e73ebb0ef06 /tools/vccexe
parent9cc4a57768156883acc4e8190c78a69ed2c3d526 (diff)
downloadNim-6bdf7fdbce49a4e356e62ed4429cfa6189185f15.tar.gz
enum types can now be assigned values from enum with holes (#9958)
* Fixes https://github.com/nim-lang/Nim/issues/9952

* Remove workaround from vccexe
Diffstat (limited to 'tools/vccexe')
-rw-r--r--tools/vccexe/vccexe.nim10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/vccexe/vccexe.nim b/tools/vccexe/vccexe.nim
index e7c3a4d75..f794885f2 100644
--- a/tools/vccexe/vccexe.nim
+++ b/tools/vccexe/vccexe.nim
@@ -3,11 +3,11 @@ import strutils, strtabs, os, osproc, vcvarsall, vccenv
 type
   VccVersion* = enum ## VCC compiler backend versions
     vccUndefined = 0,   ## VCC version undefined, resolves to the latest recognizable VCC version
-    vcc90  = ord(vs90)  ## Visual Studio 2008 (Version 9.0)
-    vcc100 = ord(vs100) ## Visual Studio 2010 (Version 10.0)
-    vcc110 = ord(vs110) ## Visual Studio 2012 (Version 11.0)
-    vcc120 = ord(vs120) ## Visual Studio 2013 (Version 12.0)
-    vcc140 = ord(vs140) ## Visual Studio 2015 (Version 14.0)
+    vcc90  = vs90  ## Visual Studio 2008 (Version 9.0)
+    vcc100 = vs100 ## Visual Studio 2010 (Version 10.0)
+    vcc110 = vs110 ## Visual Studio 2012 (Version 11.0)
+    vcc120 = vs120 ## Visual Studio 2013 (Version 12.0)
+    vcc140 = vs140 ## Visual Studio 2015 (Version 14.0)
 
 proc discoverVccVcVarsAllPath*(version: VccVersion = vccUndefined): string =
   ## Returns the path to the vcvarsall utility of the specified VCC compiler backend.