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

This commit is contained in:
Miran
2020-02-05 13:41:16 +01:00
committed by GitHub
parent 8279da5219
commit c6d5f0df8d
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"