From: Joel Rosdahl Date: Sun, 2 Jun 2024 12:43:13 +0000 (+0200) Subject: refactor: Convert ArgsInfo::output_ipa to fs::path X-Git-Tag: v4.11~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=723a06d7abfe10058a56608334e4260054f35d2b;p=thirdparty%2Fccache.git refactor: Convert ArgsInfo::output_ipa to fs::path --- diff --git a/src/ccache/ArgsInfo.hpp b/src/ccache/ArgsInfo.hpp index 5b231c32..7be3c9d1 100644 --- a/src/ccache/ArgsInfo.hpp +++ b/src/ccache/ArgsInfo.hpp @@ -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; diff --git a/src/ccache/argprocessing.cpp b/src/ccache/argprocessing.cpp index e2c05c7e..030919ca 100644 --- a/src/ccache/argprocessing.cpp +++ b/src/ccache/argprocessing.cpp @@ -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;