Skip to content

Commit

Permalink
cmake: Make the clang release build always lto.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcum42 committed Jan 5, 2023
1 parent 3254d27 commit 949d455
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}
]
}
}

0 comments on commit 949d455

Please sign in to comment.