parameters: (self, arguments, my_env)
docstring: Check if different code is generated with/without the -g flag.
docstring_summary: Check if different code is generated with/without the -g flag.
docstring_tokens: Check if different code is generated with / without the - g flag .
function: def perform_check(self, arguments, my_env):
          """Check if different code is generated with/without the -g flag."""
          output_file_b = get_temp_file_name('.o')
  
          alternate_command = list(arguments)
          alternate_command = flip_dash_g(alternate_command)
          alternate_command = set_output_file(alternate_command, output_file_b)
          run_step(alternate_command, my_env, "Error compiling with -g")
  
          # Compare disassembly (returns first diff if differs)
          difference = obj_diff.compare_object_files(self._output_file_a,
                                                     output_file_b)
          if difference:
              raise WrapperCheckException(
                  "Code difference detected with -g\n{}".format(difference))
  
          # Clean up temp file if comparison okay
          os.remove(output_file_b)
function_tokens: def perform_check ( self , arguments , my_env ) : output_file_b = get_temp_file_name ( '.o' ) alternate_command = list ( arguments ) alternate_command = flip_dash_g ( alternate_command ) alternate_command = set_output_file ( alternate_command , output_file_b ) run_step ( alternate_command , my_env , "Error compiling with -g" ) # Compare disassembly (returns first diff if differs) difference = obj_diff . compare_object_files ( self . _output_file_a , output_file_b ) if difference : raise WrapperCheckException ( "Code difference detected with -g\n{}" . format ( difference ) ) # Clean up temp file if comparison okay os . remove ( output_file_b )