return Statistic::none;
}
- // MSVC /Tc and /Tp options for specifying input file.
+ // MSVC /Tc and /Tp options with no space for specifying input file.
if (arg.length() > 3 && util::starts_with(arg, "-T")
&& (arg[2] == 'c' || arg[2] == 'p')) {
- size_t file_index = arg[3] == ' ' ? 4 : 3;
- state.input_files.emplace_back(arg.substr(file_index));
+ state.common_args.push_back(args[i]);
+ state.input_files.emplace_back(arg.substr(3));
+ return Statistic::none;
}
}