mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-07 02:48:24 +00:00
The old pre-flight truncated the output at startup with -f, so an interrupted capture lost the trace, and the probe fopen followed a symlink. The existing file is now moved to FILE~ for the duration of the capture and restored if the trace cannot be written.
11 lines
304 B
CMake
11 lines
304 B
CMake
set(TRACY_UTIL_DIR ${CMAKE_CURRENT_LIST_DIR}/../util)
|
|
|
|
set(TRACY_UTIL_SOURCES
|
|
CaptureFileBackup.cpp
|
|
)
|
|
|
|
list(TRANSFORM TRACY_UTIL_SOURCES PREPEND "${TRACY_UTIL_DIR}/")
|
|
|
|
add_library(TracyUtil STATIC EXCLUDE_FROM_ALL ${TRACY_UTIL_SOURCES})
|
|
target_include_directories(TracyUtil PUBLIC ${TRACY_UTIL_DIR})
|