]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Convert ArgsInfo::output_dia to fs::path
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Jun 2024 11:02:17 +0000 (13:02 +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 6ccd55debd720a120614a8a929cf084002059329..84d2635ce58f8c3695401db3ee330f522c7fd165 100644 (file)
@@ -60,7 +60,7 @@ struct ArgsInfo
   std::filesystem::path output_ci;
 
   // Diagnostic generation information (Clang). Contains pathname if not empty.
-  std::string output_dia;
+  std::filesystem::path output_dia;
 
   // Split dwarf information (GCC 4.8 and up). Contains pathname if not empty.
   std::string output_dwo;
index 49428349c4cf5104675b4c96cbf416a9d845c71c..9e9673cd94f74ed2b8c44409765c9219eb8410fa 100644 (file)
@@ -1010,8 +1010,7 @@ process_option_arg(const Context& ctx,
       return Statistic::bad_compiler_arguments;
     }
     args_info.generating_diagnostics = true;
-    args_info.output_dia =
-      util::pstr(core::make_relative_path(ctx, args[i + 1]));
+    args_info.output_dia = core::make_relative_path(ctx, args[i + 1]);
     i++;
     return Statistic::none;
   }