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:
parent
e274c5c485
commit
7dc040b01c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user