From 949d455d2f1f8157c0decdfc1c9dd5e6cd3ae05d Mon Sep 17 00:00:00 2001 From: arcum42 Date: Tue, 3 Jan 2023 18:12:42 -0800 Subject: [PATCH] cmake: Make the clang release build always lto. --- CMakePresets.json | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 12f6ea68fb..e98ec1fc0f 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -28,16 +28,6 @@ "CMAKE_CXX_COMPILER": "clang++" } }, - { - "name": "lto", - "displayName": "Default Profile using clang/ninja & lto.", - "description": "Release lto build using ninja & clang.", - "inherits": "clang-base", - "cacheVariables": { - "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", - "CMAKE_BUILD_TYPE": "Release" - } - }, { "name": "ninja-multi", "displayName": "Ninja Multi Config", @@ -126,11 +116,12 @@ { "name": "clang-release", "displayName": "Clang Release", - "description": "Release build using ninja & clang.", + "description": "Release lto build using ninja & clang.", "inherits": "clang-base", "cacheVariables": { + "CMAKE_INTERPROCEDURAL_OPTIMIZATION": "ON", "CMAKE_BUILD_TYPE": "Release" } } ] -} \ No newline at end of file +}