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'])
# debug?
if (self.user_settings.debug == 1):
message(self, "including: DEBUG")
env.Prepend(CXXFLAGS = ['-g'])
else:
if not self.user_settings.debug:
env.Append(CPPDEFINES = ['NDEBUG', 'RELEASE'])
env.Prepend(CXXFLAGS = ['-O2'])
env.Prepend(CXXFLAGS = ['-g', '-O2'])
if self.user_settings.memdebug:
message(self, "including: MEMDEBUG")
env.Append(CPPDEFINES = ['DEBUG_MEMORY_ALLOCATIONS'])