From e99f35ff23ae05e6f7c8d5826fdaced852c8ff40 Mon Sep 17 00:00:00 2001 From: Fredrik Høisæther Rasch Date: Tue, 25 Oct 2016 01:49:18 +0200 Subject: 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 --- config/nim.cfg | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'config') 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: -- cgit 1.4.1-2-gfad0