mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-20 05:10:20 +01:00
core: disable lto for hyprland builds (#11972)
LTO has the tendency to remove functions completely by inlining them, which breaks function hooks. Force disable LTO to not have plugins break.
This commit is contained in:
parent
d599513d4a
commit
ed93643021
1 changed files with 3 additions and 0 deletions
|
|
@ -95,6 +95,9 @@ add_compile_options(
|
|||
-Wno-clobbered
|
||||
-fmacro-prefix-map=${CMAKE_SOURCE_DIR}/=)
|
||||
|
||||
# disable lto as it may break plugins
|
||||
add_compile_options(-fno-lto)
|
||||
|
||||
set(CMAKE_EXECUTABLE_ENABLE_EXPORTS TRUE)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue