mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 23:20:36 +02:00
2026-09-15 06:36:27
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
defddec47f
commit
43607d0b7e
3 changed files with 13 additions and 0 deletions
|
|
@ -153,6 +153,13 @@ if (MSVC AND ARCHITECTURE_x86)
|
|||
instead, run vcvars64.bat directly, located at C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat")
|
||||
endif()
|
||||
|
||||
# Required for ICF builds
|
||||
if (NOT MSVC)
|
||||
add_compile_options(
|
||||
$<$<COMPILE_LANGUAGE:C,CXX>:-ffunction-sections>
|
||||
$<$<COMPILE_LANGUAGE:C,CXX>:-fdata-sections>)
|
||||
endif()
|
||||
|
||||
if (CXX_CLANG_CL)
|
||||
# clang-cl prints literally 10000+ warnings without this
|
||||
add_compile_options(
|
||||
|
|
|
|||
|
|
@ -444,6 +444,9 @@ if (YUZU_ROOM)
|
|||
target_link_libraries(yuzu PRIVATE yuzu-room)
|
||||
endif()
|
||||
|
||||
if (NOT MSVC)
|
||||
target_link_options(yuzu PRIVATE "LINKER:--icf=all,--gc-sections")
|
||||
endif()
|
||||
if (NOT MSVC AND (APPLE OR NOT YUZU_STATIC_BUILD))
|
||||
# needed for vma
|
||||
target_compile_options(yuzu PRIVATE
|
||||
|
|
|
|||
|
|
@ -67,6 +67,9 @@ endif()
|
|||
|
||||
create_target_directory_groups(yuzu-cmd)
|
||||
|
||||
if (NOT MSVC)
|
||||
target_link_options(yuzu PRIVATE "LINKER:--icf=all,--gc-sections")
|
||||
endif()
|
||||
# needed for vma
|
||||
if (NOT MSVC)
|
||||
target_compile_options(yuzu-cmd PRIVATE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue