diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-05 23:12:24 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-06 03:52:00 +0100 |
commit | 5b91de16256955384c7a1b023ed48ea51e84b347 (patch) | |
tree | ae22593c8ec895639111f7472e3634e282c9299f /userconfig-sthalik@Windows-Clang.cmake | |
parent | c77cfcf4782e0c36ffaaccb0a4c8c508ffcded61 (diff) |
cmake: always run with -ftime-trace in debug mode
Diffstat (limited to 'userconfig-sthalik@Windows-Clang.cmake')
-rw-r--r-- | userconfig-sthalik@Windows-Clang.cmake | 5 |
1 files 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() |