aboutsummaryrefslogtreecommitdiff
path: root/cmake/compiler/clang
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/compiler/clang')
-rw-r--r--cmake/compiler/clang/settings.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/compiler/clang/settings.cmake b/cmake/compiler/clang/settings.cmake
index 2b6e998d854..1f11cb4112e 100644
--- a/cmake/compiler/clang/settings.cmake
+++ b/cmake/compiler/clang/settings.cmake
@@ -125,6 +125,14 @@ if(TSAN)
message(STATUS "Clang: Enabled Thread Sanitizer TSan")
endif()
+if(BUILD_TIME_ANALYSIS)
+ target_compile_options(trinity-compile-option-interface
+ INTERFACE
+ -ftime-trace)
+
+ message(STATUS "Clang: Enabled build time analysis (-ftime-trace)")
+endif()
+
# -Wno-narrowing needed to suppress a warning in g3d
# -Wno-deprecated-register is needed to suppress 185 gsoap warnings on Unix systems.
# -Wno-deprecated-copy needed to suppress a warning in g3d