Skip to content

Commit

Permalink
[bugfix] fix #11484, acknowledge 'danger' flag (#11486)
Browse files Browse the repository at this point in the history
(cherry picked from commit 1e9316e)
  • Loading branch information
narimiran committed Jul 8, 2019
1 parent b0e86d0 commit 20f6acc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/commands.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ template bootSwitch(name, expr, userString) =
const name = if expr: " " & userString else: ""

bootSwitch(usedRelease, defined(release), "-d:release")
bootSwitch(usedDanger, defined(danger), "-d:danger")
bootSwitch(usedGnuReadline, defined(useLinenoise), "-d:useLinenoise")
bootSwitch(usedBoehm, defined(boehmgc), "--gc:boehm")
bootSwitch(usedMarkAndSweep, defined(gcmarkandsweep), "--gc:markAndSweep")
Expand Down Expand Up @@ -96,7 +97,7 @@ proc writeVersionInfo(conf: ConfigRef; pass: TCmdLinePass) =
when gitHash.len == 40:
msgWriteln(conf, "git hash: " & gitHash, {msgStdout})

msgWriteln(conf, "active boot switches:" & usedRelease &
msgWriteln(conf, "active boot switches:" & usedRelease & usedDanger &
usedTinyC & usedGnuReadline & usedNativeStacktrace &
usedFFI & usedBoehm & usedMarkAndSweep & usedGenerational & usedGoGC & usedNoGC,
{msgStdout})
Expand Down

0 comments on commit 20f6acc

Please sign in to comment.