]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Convert ArgsInfo::output_ci to fs::path
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Jun 2024 11:01:35 +0000 (13:01 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 30 Jun 2024 15:18:50 +0000 (17:18 +0200)
src/ccache/ArgsInfo.hpp
src/ccache/argprocessing.cpp

index bc5d114d636ddc2790de3a9a2b3fc753fb871d13..6ccd55debd720a120614a8a929cf084002059329 100644 (file)
@@ -57,7 +57,7 @@ struct ArgsInfo
   std::filesystem::path output_su;
 
   // The path to the callgraph info (implicit when using -fcallgraph-info).
-  std::string output_ci;
+  std::filesystem::path output_ci;
 
   // Diagnostic generation information (Clang). Contains pathname if not empty.
   std::string output_dia;
index 9e8302265c5fc62de871582b97f856bcd6626239..49428349c4cf5104675b4c96cbf416a9d845c71c 100644 (file)
@@ -1636,8 +1636,7 @@ process_args(Context& ctx)
   if (args_info.generating_callgraphinfo) {
     fs::path default_cifile_name =
       util::with_extension(args_info.output_obj, ".ci");
-    args_info.output_ci =
-      util::pstr(core::make_relative_path(ctx, default_cifile_name));
+    args_info.output_ci = core::make_relative_path(ctx, default_cifile_name);
   }
 
   if (args_info.generating_ipa_clones) {