forked from nim-lang/Nim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 4e0f120)
- Loading branch information
1 parent
274f94c
commit 93b868b
Showing
5 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cpu:i386 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
os:linux |