fix -prod on OpenBSD

pull/3713/head
radare 2020-02-10 08:57:35 +01:00 committed by GitHub
parent e274c5c485
commit 7dc040b01c
1 changed files with 8 additions and 1 deletions

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 {