1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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
}