Fix LTO in debug build
This commit is contained in:
parent
3c98147427
commit
700a46e5db
1 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,6 @@ if (NOT DESKTOP_APP_USE_PACKAGED)
|
||||||
target_link_options(common_options
|
target_link_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
-rdynamic
|
-rdynamic
|
||||||
-fwhole-program
|
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -74,6 +73,8 @@ if (NOT DESKTOP_APP_USE_PACKAGED OR DESKTOP_APP_SPECIAL_TARGET)
|
||||||
)
|
)
|
||||||
target_link_options(common_options
|
target_link_options(common_options
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
$<$<CONFIG:Debug>:-fno-use-linker-plugin>
|
||||||
|
$<$<NOT:$<CONFIG:Debug>>:-fwhole-program>
|
||||||
-Wl,-z,relro
|
-Wl,-z,relro
|
||||||
-Wl,-z,now
|
-Wl,-z,now
|
||||||
# -pie # https://gitlab.gnome.org/GNOME/nautilus/-/issues/1601
|
# -pie # https://gitlab.gnome.org/GNOME/nautilus/-/issues/1601
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue