diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2021-05-20 11:52:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 11:52:46 +0200 |
commit | df429fa28772e077faa30dd6e3a701abf48c7669 (patch) | |
tree | 7c4a7fa9f583d8bfcb8446c26d46ed93454c8dd6 /tests | |
parent | a1c82c39af812b54cd3dd1e472c9088457fb7dc5 (diff) | |
download | Nim-df429fa28772e077faa30dd6e3a701abf48c7669.tar.gz |
config system: special case -d:release and -d:danger [backport:1.4] (#18051)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/newconfig/tfoo.nim | 4 | ||||
-rw-r--r-- | tests/newconfig/tfoo.nims | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/newconfig/tfoo.nim b/tests/newconfig/tfoo.nim index 6654202c5..0c6ded470 100644 --- a/tests/newconfig/tfoo.nim +++ b/tests/newconfig/tfoo.nim @@ -1,6 +1,6 @@ discard """ cmd: "nim default --hint:cc:off --hint:cc $file" - output: '''hello world! 0.5''' + output: '''hello world! 0.5 true''' nimout: '''[NimScript] exec: gcc -v''' """ @@ -10,4 +10,4 @@ when not defined(definedefine): import math, mfriends discard gen[int]() -echo "hello world! ", ln 2.0 +echo "hello world! ", ln 2.0, " ", compileOption("opt", "speed") diff --git a/tests/newconfig/tfoo.nims b/tests/newconfig/tfoo.nims index 6f0048afb..0cb950227 100644 --- a/tests/newconfig/tfoo.nims +++ b/tests/newconfig/tfoo.nims @@ -3,6 +3,8 @@ mode = ScriptMode.Whatif exec "gcc -v" +--define:release + --forceBuild --path: "../friends" |