Nim.cfg: Arch option dependent on target platform

This commit is contained in:
Fredrik Høisæther Rasch
2016-10-25 10:59:43 +02:00
parent 04a610c55b
commit 7b1f948b72

View File

@@ -188,7 +188,13 @@ vcc.linkerexe = "vccexe.exe"
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"
@if defined(i386):
vcc.options.speed = "/O2 /arch:SSE2"
@elif defined(amd64):
vcc.options.speed = "/O2 /arch:AVX"
@else:
vcc.options.speed = "/O2"
@end
vcc.options.size = "/O1"
# Configuration for the Tiny C Compiler: