Lines Matching refs:compiler
183 def find_toolchain(compiler, tools_dir): argument
184 if compiler == 'msvc':
186 if compiler == 'clang-cl':
188 if compiler == 'gcc':
190 if compiler == 'clang':
192 if compiler == 'any':
206 file = os.path.basename(compiler)
209 return ('msvc', compiler)
211 return ('clang-cl', compiler)
213 return ('clang', compiler)
215 return ('gcc', compiler)
217 return ('generic', compiler)
218 return ('unknown', compiler)
227 self.compiler = args.compiler
287 compiler_parent_dir = os.path.dirname(self.compiler)
291 self.compiler = os.path.join(host_dir, self.msvc_arch_str, 'cl.exe')
293 … print('Using alternate compiler "{0}" to match selected target.'.format(self.compiler))
303 compiler_dir = os.path.dirname(self.compiler)
480 compiler_dir = os.path.dirname(self.compiler)
556 args.append(self.compiler)
635 args.append(self.compiler)
660 args.append(self.compiler)
775 (toolchain_type, toolchain_path) = find_toolchain(args.compiler, args.tools_dir)
777 print('Unable to find toolchain {0}'.format(args.compiler))
783 print(' Compiler: ' + args.compiler)
796 args.compiler = toolchain_path
797 if not os.path.exists(args.compiler) and not args.dry:
798 raise ValueError('The toolchain {} does not exist.'.format(args.compiler))