From: huangqinjin Date: Wed, 7 Jun 2023 06:51:38 +0000 (+0800) Subject: fix: Keep the order of MSVC showIncludes output (#1295) X-Git-Tag: v4.8.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a71cb96cc8a1e460b3e19ec69409c94fafba535d;p=thirdparty%2Fccache.git fix: Keep the order of MSVC showIncludes output (#1295) The bug is introduced in commit 3ec0d4ec961cb0c67ff1603b83a6026d9f3abbb5. --- diff --git a/src/ccache.cpp b/src/ccache.cpp index c06715868..58edac98f 100644 --- a/src/ccache.cpp +++ b/src/ccache.cpp @@ -1029,7 +1029,7 @@ rewrite_stdout_from_compiler(const Context& ctx, util::Bytes&& stdout_data) ctx, Util::normalize_concrete_absolute_path(abs_inc_path)); std::string line_with_rel_inc = util::replace_first(orig_line, abs_inc_path, rel_inc_path); - new_stdout_data.insert(new_stdout_data.begin(), + new_stdout_data.insert(new_stdout_data.end(), line_with_rel_inc.data(), line_with_rel_inc.size()); } else {