Added explanatory comments about vccexe and its path argument in nim.cfg

This commit is contained in:
Fredrik Høisæther Rasch
2017-03-20 22:32:17 +01:00
committed by Fredrik Høisæther Rasch
parent 503a816b36
commit 86206b2533

View File

@@ -180,6 +180,39 @@ clang.options.speed = "-O3"
clang.options.size = "-Os"
# Configuration for the Visual C/C++ compiler:
# VCCEXE is a tool that invokes the Visual Studio Developer Command Prompt
# before calling the compiler.
# Please make sure either Visual Studio or C++ Build SKU is installed when using the vcc compiler backend.
# With Side-by-side installation support in VS2017, the VCC SDK no longer defines global environment variables
# that can be used to discover the path for your SDK installation.
# Because of that and greater flexibility you have to specify the path to the vcvarsall file that initializes
# the C/C++ Devloper Environment for a specified target architecture.
# The following are the default paths for vcvarsall ordered by Visual Studio versions.
# Uncomment ONE of the following lines and/or adjust it to match your specific installation
# Visual Studio 2008
# --passC:"--vcvarsall:\"%VS90COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# --passL:"--vcvarsall:\"%VS90COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# Visual Studio 2010
# --passC:"--vcvarsall:\"%VS100COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# --passL:"--vcvarsall:\"%VS100COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# Visual Studio 2012
# --passC:"--vcvarsall:\"%VS110COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# --passL:"--vcvarsall:\"%VS110COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# Visual Studio 2013
# --passC:"--vcvarsall:\"%VS120COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# --passL:"--vcvarsall:\"%VS120COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# Visual Studio 2015
# --passC:"--vcvarsall:\"%VS140COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# --passL:"--vcvarsall:\"%VS140COMNTOOLS%..\\\..\\VC\\vcvarsall\""
# Visual Studio 2017 Community Edition (replace the 'Community' path segment, with the Installation Instance name for your installtion)
# --passC:"--vcvarsall:\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2107\\Community\\VC\\Auxiliary\\Build\\vcvarsall\""
# --passL:"--vcvarsall:\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2107\\Community\\VC\\Auxiliary\\Build\\vcvarsall\""
# Note that there are two entries, one 'passC' and one 'passL' entry, so that nim loads the tools both for compilation and linking.
vcc.exe = "vccexe.exe"
vcc.cpp.exe = "vccexe.exe"
vcc.linkerexe = "vccexe.exe"