]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
fix: Keep the order of MSVC showIncludes output (#1295)
authorhuangqinjin <huangqinjin@gmail.com>
Wed, 7 Jun 2023 06:51:38 +0000 (14:51 +0800)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 06:51:38 +0000 (08:51 +0200)
The bug is introduced in commit 3ec0d4ec961cb0c67ff1603b83a6026d9f3abbb5.

src/ccache.cpp

index c06715868ffd3d258933e7cf4bf18cc6e2caf677..58edac98ff26bc14fe5651a225bdd55cb15b1736 100644 (file)
@@ -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 {