Lines Matching refs:arg
385 arg = args[i]
386 if arg == '--crate-name':
389 elif arg == '--crate-type':
395 elif arg == '--test':
397 elif arg == '--target':
400 elif arg == '--cfg':
406 elif arg == '--extern':
411 elif arg == '-C': # codegen options
414 elif arg.startswith('-C'):
417 self.add_codegens_flag(arg[2:])
418 elif arg == '--cap-lints':
421 elif arg == '-L':
431 elif arg == '-l':
439 elif arg == '--out-dir' or arg == '--color': # ignored
441 elif arg.startswith('--error-format=') or arg.startswith('--json='):
442 _ = arg # ignored
443 elif arg.startswith('--emit='):
444 self.emit_list = arg.replace('--emit=', '')
445 elif arg.startswith('--edition='):
446 self.edition = arg.replace('--edition=', '')
447 elif not arg.startswith('-'):
462 self.errors += 'ERROR: unknown ' + arg + '\n'
961 arg = args[i]
962 if arg == '"-c"':
971 elif arg == '"-o"':
974 elif arg == '"-I"':
977 elif arg.startswith('"-D'):
979 elif arg.startswith('"-f'):
981 elif arg.startswith('"-W'):
983 elif not (arg.startswith('"-O') or arg == '"-m64"' or arg == '"-g"' or
984 arg == '"-g3"'):