ci: fix failing tests

pull/12102/head
Delyan Angelov 2021-10-07 19:22:08 +03:00
parent c356e347f5
commit 60add6cc28
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 3 additions and 4 deletions

View File

@ -633,10 +633,9 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
if res.is_debug { if res.is_debug {
res.parse_define('debug') res.parse_define('debug')
} }
if command == 'run' && res.is_prod { if command == 'run' && res.is_prod && os.is_atty(1) > 0 {
println("error: `v run` with -prod is disabled eprintln("NB: building an optimized binary takes much longer. It shouldn't be used with `v run`.")
building an optimized binary takes much longer, so it shouldn't be used with `v run` eprintln('Use `v run` without optimization, or build an optimized binary with -prod first, then run it separately.')
use `v run` without optimization, or build an optimized binary with -prod and then run it separately\n")
} }
// res.use_cache = true // res.use_cache = true