From: Joel Rosdahl Date: Sun, 4 Feb 2024 08:26:26 +0000 (+0100) Subject: chore: Make implementation of /Tc and /Tp actually work X-Git-Tag: v4.10~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50134780bf34fb6416cd58e03c155eaafca1aece;p=thirdparty%2Fccache.git chore: Make implementation of /Tc and /Tp actually work In addition to 7b8aaf562feb. --- diff --git a/src/argprocessing.cpp b/src/argprocessing.cpp index f1a11ab3a..b823290d6 100644 --- a/src/argprocessing.cpp +++ b/src/argprocessing.cpp @@ -562,11 +562,12 @@ process_option_arg(const Context& ctx, 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; } }