summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorFredrik Høisæther Rasch <fredrik.rasch@gmail.com>2016-10-25 01:49:18 +0200
committerFredrik Høisæther Rasch <fredrik.rasch@gmail.com>2016-10-25 01:49:18 +0200
commite99f35ff23ae05e6f7c8d5826fdaced852c8ff40 (patch)
treef30c5e85eafad0e1549679aaf2077cc128c601cb /config
parent01afff495cdf1b9bb0646894dac74fcfdb59d072 (diff)
downloadNim-e99f35ff23ae05e6f7c8d5826fdaced852c8ff40.tar.gz
VCC wrappers with vcvars args.
VCC wrappers no longer wrap for compile-time specific target
VCC wrappers now peek into the command line args and evaluate vcvars prefixed arguments
Diffstat (limited to 'config')
-rw-r--r--config/nim.cfg12
1 files changed, 10 insertions, 2 deletions
diff --git a/config/nim.cfg b/config/nim.cfg
index 8c8270f3e..65bdd2a61 100644
--- a/config/nim.cfg
+++ b/config/nim.cfg
@@ -177,10 +177,18 @@ clang.options.speed = "-O3"
 clang.options.size = "-Os"
 
 # Configuration for the Visual C/C++ compiler:
-vcc.options.linker = "/DEBUG /Zi /Fd\"$projectName.pdb\" /F33554432" # set the stack size to 8 MB
+vcc.exe = "vccexe.exe"
+vcc.linkerexe = "vccexe.exe"
+
+# Here we need to set the options for specific platforms:
+# amd64.windows.vcc.options = "/vcvars:platform:amd64"
+# i386.windows.vcc.options = "/vcvars:platform:x86"
+# arm.windows.vcc.options = "/vcvars:platform:arm"
+
+vcc.options.linker = "/nologo /DEBUG /Zi /Fd\"$projectName.pdb\" /F33554432" # set the stack size to 8 MB
 vcc.options.debug = "/Zi /Fd\"$projectName.pdb\""
 vcc.options.always = "/nologo"
-vcc.options.speed = "/O2 /arch:SSE2"
+vcc.options.speed = "/O2"
 vcc.options.size = "/O1"
 
 # Configuration for the Tiny C Compiler: