[backport] -d:danger should imply -d:release (#13336)

(cherry picked from commit c6d5f0df8d)
This commit is contained in:
Miran
2020-02-05 13:41:16 +01:00
committed by narimiran
parent faa4720dcf
commit 6d65e69b10
2 changed files with 14 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ path="$lib/pure"
debugger:off
line_dir:off
opt:speed
define:release
@end
@if false: # not danger: # this does not work yet.

View File

@@ -0,0 +1,13 @@
discard """
cmd: "nim c -d:danger -r $file"
output: '''
a
b
c
'''
"""
echo "a"
when defined(release):
echo "b"
echo "c"