compiler: pass -no-pie in debug builds so that backtraces work
parent
e15abb3de0
commit
15d4f68af6
|
@ -118,13 +118,13 @@ fn (v mut V) cc() {
|
|||
mut optimization_options := '-O2'
|
||||
if v.pref.ccompiler.contains('clang') {
|
||||
if debug_mode {
|
||||
debug_options = '-g -O0'
|
||||
debug_options = '-g -O0 -no-pie'
|
||||
}
|
||||
optimization_options = '-O3 -flto'
|
||||
}
|
||||
if v.pref.ccompiler.contains('gcc') {
|
||||
if debug_mode {
|
||||
debug_options = '-g3'
|
||||
debug_options = '-g3 -no-pie'
|
||||
}
|
||||
optimization_options = '-O3 -fno-strict-aliasing -flto'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue