]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
refactor: Convert ArgsInfo::output_ipa to fs::path
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 2 Jun 2024 12:43:13 +0000 (14:43 +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 5b231c323aef7676cf0dc4bbf3d06829a7ba2d44..7be3c9d1aa184af2865d7392d4d9d9558a2f639a 100644 (file)
@@ -66,7 +66,7 @@ struct ArgsInfo
   std::filesystem::path output_dwo;
 
   // The path to the ipa clones (implicit when using -fdump-ipa-clones).
-  std::string output_ipa;
+  std::filesystem::path output_ipa;
 
   // Assembler listing file.
   std::string output_al;
index e2c05c7ef2d3c0b07eb0a12c3e0209ad5ab1cad7..030919ca53d2ef9b7579824aa052ea712c3bff78 100644 (file)
@@ -1638,8 +1638,8 @@ process_args(Context& ctx)
   }
 
   if (args_info.generating_ipa_clones) {
-    args_info.output_ipa = util::pstr(core::make_relative_path(
-      ctx, util::add_extension(args_info.orig_input_file, ".000i.ipa-clones")));
+    args_info.output_ipa = core::make_relative_path(
+      ctx, util::add_extension(args_info.orig_input_file, ".000i.ipa-clones"));
   }
 
   Args compiler_args = state.common_args;