]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Convert ArgsInfo::output_su to fs::path
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Jun 2024 11:01:04 +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 d73f4a44bab1b512a693a786d9f37e8adceac75d..bc5d114d636ddc2790de3a9a2b3fc753fb871d13 100644 (file)
@@ -54,7 +54,7 @@ struct ArgsInfo
   std::filesystem::path output_dep;
 
   // The path to the stack usage (implicit when using -fstack-usage).
-  std::string output_su;
+  std::filesystem::path output_su;
 
   // The path to the callgraph info (implicit when using -fcallgraph-info).
   std::string output_ci;
index 8687ca0ed83a5de798a49375471ed2c6400b35d9..9e8302265c5fc62de871582b97f856bcd6626239 100644 (file)
@@ -1630,8 +1630,7 @@ process_args(Context& ctx)
   if (args_info.generating_stackusage) {
     fs::path default_sufile_name =
       util::with_extension(args_info.output_obj, ".su");
-    args_info.output_su =
-      util::pstr(core::make_relative_path(ctx, default_sufile_name));
+    args_info.output_su = core::make_relative_path(ctx, default_sufile_name);
   }
 
   if (args_info.generating_callgraphinfo) {