diff options
author | Anders Björklund <anders.f.bjorklund@gmail.com> | 2021-05-30 20:18:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-30 20:18:58 +0200 |
commit | 7c3b4def2605a8c7c23587949051981a34c86dbf (patch) | |
tree | 15d6c1e396b6ede3811aab418f8a6948721fb537 /src/MiniTrace.hpp | |
parent | 710c16888f8aacbe30f6e52697be840ce186ec14 (diff) | |
download | ccache-7c3b4def2605a8c7c23587949051981a34c86dbf.tar.gz |
Enable minitrace tracing and stop it from crashing (#852)
Need to make sure to pass the -DMTR_ENABLED also when compiling
the library and not only in the ccache internal config.h file.
When setting a standard (like C99), also need to define features.
The "strdup" function requires macro: _POSIX_C_SOURCE >= 200809L
Diffstat (limited to 'src/MiniTrace.hpp')
-rw-r--r-- | src/MiniTrace.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/MiniTrace.hpp b/src/MiniTrace.hpp index 3b44360d..25d88645 100644 --- a/src/MiniTrace.hpp +++ b/src/MiniTrace.hpp @@ -38,6 +38,7 @@ private: const ArgsInfo& m_args_info; const void* const m_trace_id; std::string m_tmp_trace_file; + std::string m_start_time; }; #endif |