Always add -g to CXXFLAGS

This commit is contained in:
Kp 2015-04-17 02:38:12 +00:00
parent 6633eef18b
commit be4eef36dd

View file

@ -1527,12 +1527,9 @@ class DXXCommon(LazyObjectConstructor):
env.Append(CPPDEFINES = ['OGL']) env.Append(CPPDEFINES = ['OGL'])
# debug? # debug?
if (self.user_settings.debug == 1): if not self.user_settings.debug:
message(self, "including: DEBUG")
env.Prepend(CXXFLAGS = ['-g'])
else:
env.Append(CPPDEFINES = ['NDEBUG', 'RELEASE']) env.Append(CPPDEFINES = ['NDEBUG', 'RELEASE'])
env.Prepend(CXXFLAGS = ['-O2']) env.Prepend(CXXFLAGS = ['-g', '-O2'])
if self.user_settings.memdebug: if self.user_settings.memdebug:
message(self, "including: MEMDEBUG") message(self, "including: MEMDEBUG")
env.Append(CPPDEFINES = ['DEBUG_MEMORY_ALLOCATIONS']) env.Append(CPPDEFINES = ['DEBUG_MEMORY_ALLOCATIONS'])