Fixes #12536 (#12568) [backport]

This commit is contained in:
Tomohiro 2019-11-02 16:21:49 +09:00 • committed by Andreas Rumpf
commit 4e0f12092e
5 changed files with 38 additions and 14 deletions

View file

@ -0,0 +1,10 @@
discard """
cmd: "nim $target $options --cpu:amd64 $file"
disabled: "32bit"
"""
import strutils
static:
#cpu is set to "i386" in tcpuamd64.nim.cfg, but --cpu:amd64 in command line should override it.
doAssert cmpIgnoreCase(hostCPU, "amd64") == 0