parameters: (args, is_debug, cpu)
return_statement: return result
docstring: Return merged GN args for the configuration and validate.
docstring_summary: Return merged GN args for the configuration and validate.
docstring_tokens: Return merged GN args for the configuration and validate .
function: def GetConfigArgs(args, is_debug, cpu):
    """
    Return merged GN args for the configuration and validate.
    """
    add_args = {}
  
    # Cannot create is_official_build=true is_debug=true builds.
    # This restriction is enforced in //build/config/BUILDCONFIG.gn.
    # Instead, our "official Debug" build is a Release build with dchecks and
    # symbols. Symbols will be generated by default for official builds; see the
    # definition of 'symbol_level' in //build/config/compiler/compiler.gni.
    if is_debug and GetArgValue(args, 'is_official_build'):
      is_debug = False
      add_args['dcheck_always_on'] = True
  
    result = MergeDicts(args, add_args, {
      'is_debug': is_debug,
      'target_cpu': cpu,
    })
  
    if platform == 'linux' and cpu != 'arm':
      # Remove any arm-related values from non-arm configs.
      for key in result.keys():
        if key.startswith('arm_'):
          del result[key]
  
    ValidateArgs(result)
    return result
function_tokens: def GetConfigArgs ( args , is_debug , cpu ) : add_args = { } # Cannot create is_official_build=true is_debug=true builds. # This restriction is enforced in //build/config/BUILDCONFIG.gn. # Instead, our "official Debug" build is a Release build with dchecks and # symbols. Symbols will be generated by default for official builds; see the # definition of 'symbol_level' in //build/config/compiler/compiler.gni. if is_debug and GetArgValue ( args , 'is_official_build' ) : is_debug = False add_args [ 'dcheck_always_on' ] = True result = MergeDicts ( args , add_args , { 'is_debug' : is_debug , 'target_cpu' : cpu , } ) if platform == 'linux' and cpu != 'arm' : # Remove any arm-related values from non-arm configs. for key in result . keys ( ) : if key . startswith ( 'arm_' ) : del result [ key ] ValidateArgs ( result ) return result