From: Joel Rosdahl Date: Sun, 2 Jun 2024 11:01:35 +0000 (+0200) Subject: refactor: Convert ArgsInfo::output_ci to fs::path X-Git-Tag: v4.11~121 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72ff29cba6b66c3683a06acba6250b555a17d061;p=thirdparty%2Fccache.git refactor: Convert ArgsInfo::output_ci to fs::path --- diff --git a/src/ccache/ArgsInfo.hpp b/src/ccache/ArgsInfo.hpp index bc5d114d..6ccd55de 100644 --- a/src/ccache/ArgsInfo.hpp +++ b/src/ccache/ArgsInfo.hpp @@ -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; diff --git a/src/ccache/argprocessing.cpp b/src/ccache/argprocessing.cpp index 9e830226..49428349 100644 --- a/src/ccache/argprocessing.cpp +++ b/src/ccache/argprocessing.cpp @@ -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) {