diff options
author | Araq <rumpf_a@web.de> | 2018-08-13 15:42:20 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-08-13 15:42:20 +0200 |
commit | 46204eba1f2eb1840b6543958c9a5306f707b3d6 (patch) | |
tree | d14472f88aea1c77a44baf6272178727de8b9b41 /tools/vccenv/vccexe.nim | |
parent | 975114e114c53601287393359c0d823b2c53a315 (diff) | |
download | Nim-46204eba1f2eb1840b6543958c9a5306f707b3d6.tar.gz |
make the vccexe helper tool compile again
Diffstat (limited to 'tools/vccenv/vccexe.nim')
-rw-r--r-- | tools/vccenv/vccexe.nim | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/vccenv/vccexe.nim b/tools/vccenv/vccexe.nim index 892246830..e86e14c0f 100644 --- a/tools/vccenv/vccexe.nim +++ b/tools/vccenv/vccexe.nim @@ -5,14 +5,14 @@ when defined(release): else: let vccOptions = {poEchoCmd, poParentStreams} -const +const platformPrefix = "--platform" winstorePrefix = "--winstore" sdkversionPrefix = "--sdkversion" platformSepIdx = platformPrefix.len sdkversionSepIdx = sdkversionPrefix.len - + HelpText = """ +-----------------------------------------------------------------+ | Microsoft C/C++ compiler wrapper for Nim | @@ -26,7 +26,7 @@ Options: <arch>: x86 | amd64 | arm | x86_amd64 | x86_arm | amd64_x86 | amd64_arm --winstore Use Windows Store (rather than desktop) development tools --sdkversion:<v> Use a specific Windows SDK version: - <v> is either the full Windows 10 SDK version number or + <v> is either the full Windows 10 SDK version number or "8.1" to use the windows 8.1 SDK Other command line arguments are passed on to the @@ -34,8 +34,8 @@ Microsoft C/C++ compiler for the specified SDK toolset """ when isMainModule: - var platformArg: string = nil - var sdkVersionArg: string = nil + var platformArg: string = "" + var sdkVersionArg: string = "" var storeArg: bool = false var clArgs: seq[TaintedString] = @[] @@ -54,7 +54,7 @@ when isMainModule: echo HelpText clArgs.add(wargv) - var vccEnvStrTab = getVccEnv(platformArg, storeArg, sdkVersionArg) + var vccEnvStrTab = getVccEnv(platformArg, storeArg, sdkVersionArg) if vccEnvStrTab != nil: for vccEnvKey, vccEnvVal in vccEnvStrTab: putEnv(vccEnvKey, vccEnvVal) |