parameters: (self, cxxflags)
docstring: Check which cxxflags are supported by compiler and add them to env.CXXFLAGS variable
docstring_summary: Check which cxxflags are supported by compiler and add them to env.CXXFLAGS variable
docstring_tokens: Check which cxxflags are supported by compiler and add them to env . CXXFLAGS variable
function: def add_supported_cxxflags(self, cxxflags):
      """
      Check which cxxflags are supported by compiler and add them to env.CXXFLAGS variable
      """
      if len(cxxflags) == 0:
          return
  
      self.start_msg('Checking supported CXXFLAGS')
  
      supportedFlags = []
      for flags in cxxflags:
          flags = Utils.to_list(flags)
          if self.check_cxx(cxxflags=['-Werror'] + flags, mandatory=False):
              supportedFlags += flags
  
      self.end_msg(' '.join(supportedFlags))
      self.env.prepend_value('CXXFLAGS', supportedFlags)
function_tokens: def add_supported_cxxflags ( self , cxxflags ) : if len ( cxxflags ) == 0 : return self . start_msg ( 'Checking supported CXXFLAGS' ) supportedFlags = [ ] for flags in cxxflags : flags = Utils . to_list ( flags ) if self . check_cxx ( cxxflags = [ '-Werror' ] + flags , mandatory = False ) : supportedFlags += flags self . end_msg ( ' ' . join ( supportedFlags ) ) self . env . prepend_value ( 'CXXFLAGS' , supportedFlags )