From f12f88bfe5974ed5bc3721de02d49f1ee71a06dd Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 2 Jun 2024 13:01:04 +0200 Subject: [PATCH] refactor: Convert ArgsInfo::output_su to fs::path --- src/ccache/ArgsInfo.hpp | 2 +- src/ccache/argprocessing.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ccache/ArgsInfo.hpp b/src/ccache/ArgsInfo.hpp index d73f4a44..bc5d114d 100644 --- a/src/ccache/ArgsInfo.hpp +++ b/src/ccache/ArgsInfo.hpp @@ -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; diff --git a/src/ccache/argprocessing.cpp b/src/ccache/argprocessing.cpp index 8687ca0e..9e830226 100644 --- a/src/ccache/argprocessing.cpp +++ b/src/ccache/argprocessing.cpp @@ -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) { -- 2.47.2