mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 21:40:32 +00:00
10
tests/compiler/tcmdlinecpuamd64.nim
Normal file
10
tests/compiler/tcmdlinecpuamd64.nim
Normal 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
|
||||
1
tests/compiler/tcmdlinecpuamd64.nim.cfg
Normal file
1
tests/compiler/tcmdlinecpuamd64.nim.cfg
Normal file
@@ -0,0 +1 @@
|
||||
cpu:i386
|
||||
14
tests/compiler/tcmdlineoswin.nim
Normal file
14
tests/compiler/tcmdlineoswin.nim
Normal file
@@ -0,0 +1,14 @@
|
||||
discard """
|
||||
cmd: "nim $target $options --os:windows $file"
|
||||
disabled: "linux"
|
||||
disabled: "bsd"
|
||||
disabled: "macosx"
|
||||
disabled: "unix"
|
||||
disabled: "posix"
|
||||
"""
|
||||
|
||||
import strutils
|
||||
|
||||
static:
|
||||
#os is set to "linux" in toswin.nim.cfg, but --os:windows in command line should override it.
|
||||
doAssert cmpIgnoreCase(hostOS, "windows") == 0
|
||||
1
tests/compiler/tcmdlineoswin.nim.cfg
Normal file
1
tests/compiler/tcmdlineoswin.nim.cfg
Normal file
@@ -0,0 +1 @@
|
||||
os:linux
|
||||
Reference in New Issue
Block a user