Home | History | Annotate | Download | only in build

Lines Matching refs:tool

6 """Compiler version checking tool for gcc
18 compiler_version_cache = {} # Map from (compiler, tool) -> version.
22 print '%s MODE TOOL' % os.path.basename(program_name)
24 print 'TOOL: assembler or compiler or linker.'
32 tool = args[1]
35 if tool not in ('assembler', 'compiler', 'linker'):
36 raise Exception('Invalid tool: %s' % tool)
37 return mode, tool
48 def GetVersion(compiler, tool):
50 cache_key = (compiler, tool)
56 if tool == "compiler":
60 elif tool == "assembler":
66 elif tool == "linker":
78 raise Exception("Unknown tool %s" % tool)
104 (mode, tool) = ParseArgs(args[1:])
109 ret_code, result = ExtractVersion(mode, tool)
118 (mode, tool) = ParseArgs(args)
119 ret_code, result = ExtractVersion(mode, tool)
125 def ExtractVersion(mode, tool):
136 compiler_version = GetVersion(compiler, tool)