diff --git a/vlib/compiler/cc.v b/vlib/compiler/cc.v index d7003180d5..2bf840ee63 100644 --- a/vlib/compiler/cc.v +++ b/vlib/compiler/cc.v @@ -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' }