config system: special case -d:release and -d:danger [backport:1.4] (#18051)

This commit is contained in:
Andreas Rumpf 2021-05-20 11:52:46 +02:00 • committed by GitHub
commit df429fa287
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 27 additions and 7 deletions

View file

@ -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")

View file

@ -3,6 +3,8 @@ mode = ScriptMode.Whatif
exec "gcc -v"
--define:release
--forceBuild
--path: "../friends"