Skip to content

Commit

Permalink
disable IPO globaly
Browse files Browse the repository at this point in the history
  • Loading branch information
filippobrizzi committed Mar 26, 2024
1 parent 9f48840 commit 5f5c307
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 67 deletions.
128 changes: 62 additions & 66 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,68 +1,64 @@
{
"version": 7,
"configurePresets": [
{
"name": "default",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_IPO": "OFF"
}
},
{
"name": "fast",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_LINTER": "OFF",
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_IPO": "OFF"
}
},
{
"name": "deps-docker",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_LINTER": "OFF",
"CMAKE_BUILD_TYPE": "Release",
"ENABLE_IPO": "OFF"
}
},
{
"name": "CI",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_LINTER": "ON",
"FORMAT_FAIL_ON_CHANGE": "ON",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_PREFIX_PATH": "/install",
"ENABLE_IPO": "OFF"
}
}
],
"buildPresets": [
{
"name": "default",
"description": "Preferred build settings",
"configurePreset": "default"
}
]
"version": 7,
"configurePresets": [
{
"name": "default",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples"
}
},
{
"name": "fast",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_LINTER": "OFF",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "deps-docker",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_LINTER": "OFF",
"CMAKE_BUILD_TYPE": "Release"
}
},
{
"name": "CI",
"description": "Configuration setting for all modules with preferred toolchain",
"generator": "Ninja",
"binaryDir": "${sourceDir}/build",
"installDir": "/install",
"toolchainFile": "${sourceDir}/toolchains/toolchain_clang.cmake",
"cacheVariables": {
"BUILD_MODULES": "all;examples",
"ENABLE_LINTER": "ON",
"FORMAT_FAIL_ON_CHANGE": "ON",
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_PREFIX_PATH": "/install"
}
}
],
"buildPresets": [
{
"name": "default",
"description": "Preferred build settings",
"configurePreset": "default"
}
]
}
3 changes: 2 additions & 1 deletion cmake/03_compiler_config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ if(LIST_OF_SANITIZERS)
endif()

# Set whether to enable inter-procedural optimisation
option(ENABLE_IPO "Enable interprocedural optimization" ON)
# TODO: This is working with latest release of Clang.
option(ENABLE_IPO "Enable interprocedural optimization" OFF)
if(ENABLE_IPO)
include(CheckIPOSupported)
check_ipo_supported(RESULT ipo_result OUTPUT output)
Expand Down

0 comments on commit 5f5c307

Please sign in to comment.