From be3aa5ac219b792ed71a2599e5e5985599817943 Mon Sep 17 00:00:00 2001 From: "Igor S. Gerasimov" Date: Sat, 11 Jan 2025 19:56:02 +0100 Subject: [PATCH] Add info about TRACY_LTO --- manual/tracy.tex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manual/tracy.tex b/manual/tracy.tex index 58f1551e..47675e61 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -479,6 +479,9 @@ target_link_libraries( PUBLIC TracyClient) \end{lstlisting} \end{bclogo} +While using \texttt{set(CMAKE\_INTERPROCEDURAL\_OPTIMIZATION ON)} is a convenient way to enable Link-Time Optimization (LTO) for an entire project, there are situations in which this may not work due to excessive compilation times, linking issues, compiler bugs, or other reasons. +For such cases, Tracy provides an option to enable Link-Time Optimization for itself using the \texttt{TRACY\_LTO} variable during the CMake configuration stage. + \subsubsection{Meson integration} If you are using the Meson build system, you can add Tracy using the Wrap dependency system. To do this, place the \texttt{tracy.wrap} file in the \texttt{subprojects} directory of your project, with the following content. The \texttt{head} \texttt{revision} field tracks Tracy's \texttt{master} branch. If you want to lock to a specific version of Tracy instead, you can just set the \texttt{revision} field to an appropriate git tag.