Skip to content

Commit

Permalink
build: decrease level of debug information produced by default
Browse files Browse the repository at this point in the history
Refs: #5279
Change-Id: Ie73909de8c51300abb00c873af722d730e6b70e1
  • Loading branch information
Pesa committed Aug 6, 2023
1 parent 0df0e1c commit 8148cd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .waf-tools/default-compiler-flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def check_compiler_flags(conf):
@Configure.conf
def add_supported_cxxflags(self, cxxflags):
"""
Check which cxxflags are supported by compiler and add them to env.CXXFLAGS variable
Check which cxxflags are supported by the active compiler and add them to env.CXXFLAGS variable.
"""
if len(cxxflags) == 0:
return
Expand All @@ -100,7 +100,7 @@ def add_supported_cxxflags(self, cxxflags):
@Configure.conf
def add_supported_linkflags(self, linkflags):
"""
Check which linkflags are supported by compiler and add them to env.LINKFLAGS variable
Check which linkflags are supported by the active compiler and add them to env.LINKFLAGS variable.
"""
if len(linkflags) == 0:
return
Expand Down Expand Up @@ -135,7 +135,7 @@ def getOptimizedFlags(self, conf):

class GccBasicFlags(CompilerFlags):
"""
This class defines basic flags that work for both gcc and clang compilers
This class defines common flags that work for both gcc and clang compilers.
"""
def getGeneralFlags(self, conf):
flags = super(GccBasicFlags, self).getGeneralFlags(conf)
Expand All @@ -147,7 +147,7 @@ def getGeneralFlags(self, conf):
def getDebugFlags(self, conf):
flags = super(GccBasicFlags, self).getDebugFlags(conf)
flags['CXXFLAGS'] += ['-Og',
'-g3',
'-g',
'-Wall',
'-Wextra',
'-Wpedantic',
Expand All @@ -165,7 +165,7 @@ def getDebugFlags(self, conf):
def getOptimizedFlags(self, conf):
flags = super(GccBasicFlags, self).getOptimizedFlags(conf)
flags['CXXFLAGS'] += ['-O2',
'-g',
'-g1',
'-Wall',
'-Wextra',
'-Wpedantic',
Expand Down

0 comments on commit 8148cd4

Please sign in to comment.