mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 03:25:13 +00:00
Meta: Don't require LTO to build in release mode
check_ipo_supported() will by default fail the generation if IPO is not available; this commit makes it so we continue the build just without LTO.
This commit is contained in:
parent
fe1962d7fa
commit
396f35c41d
Notes:
github-actions[bot]
2025-04-05 17:10:55 +00:00
Author: https://github.com/alimpfard Commit: https://github.com/LadybirdBrowser/ladybird/commit/396f35c41df Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4239 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/gmta ✅
1 changed files with 6 additions and 2 deletions
|
@ -39,8 +39,12 @@ else()
|
|||
add_cxx_compile_options(-O3)
|
||||
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported()
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
check_ipo_supported(RESULT IPO_AVAILABLE OUTPUT output)
|
||||
if(IPO_AVAILABLE)
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
else()
|
||||
message(WARNING "Not enabling IPO as it is not supported: ${output}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
function(add_cxx_linker_flag_if_supported flag)
|
||||
|
|
Loading…
Add table
Reference in a new issue