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

fix -prod on OpenBSD

This commit is contained in:
radare 2020-02-10 08:57:35 +01:00 committed by GitHub
parent e274c5c485
commit 7dc040b01c

View File

@ -181,7 +181,14 @@ fn (v mut V) cc() {
if debug_mode {
debug_options = '-g -O0 -no-pie'
}
optimization_options = '-O3 -flto'
optimization_options = '-O3'
mut have_flto := true
$if openbsd {
have_flto = false
}
if have_flto {
optimization_options += ' -flto'
}
}
if v.pref.ccompiler.contains('gcc') || guessed_compiler == 'gcc' {
if debug_mode {