// this program; if not, write to the Free Software Foundation, Inc., 51
// Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-#ifdef MTR_ENABLED
+#include "system.hpp"
-# include "MiniTrace.hpp"
+#ifdef MTR_ENABLED
# include "ArgsInfo.hpp"
+# include "MiniTrace.hpp"
+# include "Util.hpp"
# include "legacy_util.hpp"
namespace {
-
std::string
get_system_tmp_dir()
{
fmt::format("{}.ccache-trace", m_args_info.output_obj);
move_file(m_tmp_trace_file.c_str(), trace_file.c_str());
} else {
- tmp_unlink(m_tmp_trace_file.c_str());
+ Util::unlink_tmp(m_tmp_trace_file.c_str());
}
}
if (getenv("CCACHE_INTERNAL_TRACE")) {
#ifdef MTR_ENABLED
- ctx.mini_trace = std::make_unique<MiniTrace>(ctx->args_info);
+ ctx.mini_trace = std::make_unique<MiniTrace>(ctx.args_info);
#else
cc_log("Error: tracing is not enabled!");
#endif