better debugging experience on linux

pull/135/head
karroffel 2018-05-16 13:25:53 +02:00
parent 684a06daf2
commit 94ec311924
1 changed files with 6 additions and 1 deletions

View File

@ -27,9 +27,14 @@ if target_platform == 'linux':
if ARGUMENTS.get('use_llvm', 'no') == 'yes': if ARGUMENTS.get('use_llvm', 'no') == 'yes':
env['CXX'] = 'clang++' env['CXX'] = 'clang++'
env.Append(CCFLAGS = [ '-fPIC', '-g', '-O3', '-std=c++14', '-Wwrite-strings' ]) env.Append(CCFLAGS = [ '-fPIC', '-g', '-std=c++14', '-Wwrite-strings' ])
env.Append(LINKFLAGS = [ '-Wl,-R,\'$$ORIGIN\'' ]) env.Append(LINKFLAGS = [ '-Wl,-R,\'$$ORIGIN\'' ])
if target == 'debug':
env.Append(CCFLAGS = ['-Og'])
else:
env.Append(CCFLAGS = ['-O3'])
if target_arch == '32': if target_arch == '32':
env.Append(CCFLAGS = [ '-m32' ]) env.Append(CCFLAGS = [ '-m32' ])
env.Append(LINKFLAGS = [ '-m32' ]) env.Append(LINKFLAGS = [ '-m32' ])