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

@ -417,7 +417,8 @@ proc mainCommand*(graph: ModuleGraph) =
"project", project,
"output", output,
])
rawMessage(conf, hintBuildMode, build)
if conf.cmd in cmdBackends:
rawMessage(conf, hintBuildMode, build)
when PrintRopeCacheStats:
echo "rope cache stats: "