pref: don't use tcc by default in -prod mode (#7053)

pull/7059/head
spaceface777 2020-12-01 03:58:02 +01:00 committed by GitHub
parent be7c88ec35
commit 83137cbe84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ fn (mut p Preferences) try_to_use_tcc_by_default() {
$if macos {
return
}
// use an optimizing compiler (i.e. gcc or clang) on -prod mode
if p.is_prod {
return
}
p.ccompiler = default_tcc_compiler()
return
}