Skip to content
Permalink
Browse files

[bugfix] fix nim-lang#11484, acknowledge 'danger' flag

  • Loading branch information...
narimiran committed Jun 12, 2019
1 parent b056d32 commit 7bbd690d9e6cf4e24eb3f076d291741dcee7a26a
Showing with 2 additions and 1 deletion.
  1. +2 −1 compiler/commands.nim
@@ -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")
@@ -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})

0 comments on commit 7bbd690

Please sign in to comment.
You can’t perform that action at this time.