From 5b91de16256955384c7a1b023ed48ea51e84b347 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 5 Feb 2024 23:12:24 +0100 Subject: cmake: always run with -ftime-trace in debug mode --- userconfig-sthalik@Windows-Clang.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/userconfig-sthalik@Windows-Clang.cmake b/userconfig-sthalik@Windows-Clang.cmake index 71992985..a8e12e13 100644 --- a/userconfig-sthalik@Windows-Clang.cmake +++ b/userconfig-sthalik@Windows-Clang.cmake @@ -12,14 +12,12 @@ if(CMAKE_BUILD_TYPE STREQUAL "DEBUG") -fcoverage-mapping ) endif() - #add_compile_options(-ftime-trace) else() add_compile_options(-march=native -mavx2) add_compile_options(-emit-llvm) add_compile_options(-fmerge-all-constants -flto=full -fwhole-program-vtables -fforce-emit-vtables) add_link_options(-fmerge-all-constants -flto=full -fwhole-program-vtables -fforce-emit-vtables) add_link_options(-Wl,--gc-sections -Wl,--icf=all) - #add_compile_options(-ftime-trace) endif() if(FLOORMAT_ASAN) @@ -134,4 +132,7 @@ function(fm-userconfig-src) -Wno-error=weak-vtables -Wno-error=unreachable-code ) + if(CMAKE_BUILD_TYPE STREQUAL "DEBUG") + add_compile_options(-ftime-trace) + endif() endfunction() -- cgit v1.2.3