debug symbols in release config

This commit is contained in:
Timothee 'TTimo' Besset 2023-04-23 22:51:42 -05:00
parent df49d3b4d2
commit 2a86f41e1c
2 changed files with 12 additions and 3 deletions

11
.vscode/tasks.json vendored
View File

@ -4,7 +4,7 @@
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "build debug", "label": "build local debug",
"type": "shell", "type": "shell",
"command": "scons config=debug --no-packs --jobs=12", "command": "scons config=debug --no-packs --jobs=12",
"problemMatcher": [], "problemMatcher": [],
@ -12,6 +12,15 @@
"kind": "build" "kind": "build"
} }
}, },
{
"label": "build local release",
"type": "shell",
"command": "scons config=release --no-packs --jobs=12",
"problemMatcher": [],
"group": {
"kind": "build"
}
},
{ {
"label": "build flatpak", "label": "build flatpak",
"type": "shell", "type": "shell",

View File

@ -264,8 +264,8 @@ class Config:
env.Append( CXXFLAGS = [ '-g' ] ) env.Append( CXXFLAGS = [ '-g' ] )
env.Append( CPPDEFINES = [ '_DEBUG' ] ) env.Append( CPPDEFINES = [ '_DEBUG' ] )
else: else:
env.Append( CFLAGS = [ '-O2', '-fno-strict-aliasing' ] ) env.Append( CFLAGS = [ '-O2', '-g', '-fno-strict-aliasing' ] )
env.Append( CXXFLAGS = [ '-O2', '-fno-strict-aliasing' ] ) env.Append( CXXFLAGS = [ '-O2', '-g', '-fno-strict-aliasing' ] )
# this lets us catch libjpg and libpng libraries that we put in the same directory as radiant.bin # this lets us catch libjpg and libpng libraries that we put in the same directory as radiant.bin
env.Append( LINKFLAGS = '-Wl,-rpath,.' ) env.Append( LINKFLAGS = '-Wl,-rpath,.' )