mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 18:59:26 +02:00
2026-09-15 07:28:16
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
60003ea642
commit
cf1d905786
3 changed files with 6 additions and 11 deletions
|
|
@ -153,13 +153,6 @@ 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")
|
instead, run vcvars64.bat directly, located at C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvars64.bat")
|
||||||
endif()
|
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)
|
if (CXX_CLANG_CL)
|
||||||
# clang-cl prints literally 10000+ warnings without this
|
# clang-cl prints literally 10000+ warnings without this
|
||||||
add_compile_options(
|
add_compile_options(
|
||||||
|
|
|
||||||
|
|
@ -444,9 +444,10 @@ if (YUZU_ROOM)
|
||||||
target_link_libraries(yuzu PRIVATE yuzu-room)
|
target_link_libraries(yuzu PRIVATE yuzu-room)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT MSVC)
|
if (LINKER STREQUAL "lld")
|
||||||
target_link_options(yuzu PRIVATE "LINKER:--icf=all,--gc-sections")
|
target_link_options(yuzu-cmd PRIVATE "LINKER:--icf=all")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (NOT MSVC AND (APPLE OR NOT YUZU_STATIC_BUILD))
|
if (NOT MSVC AND (APPLE OR NOT YUZU_STATIC_BUILD))
|
||||||
# needed for vma
|
# needed for vma
|
||||||
target_compile_options(yuzu PRIVATE
|
target_compile_options(yuzu PRIVATE
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,10 @@ endif()
|
||||||
|
|
||||||
create_target_directory_groups(yuzu-cmd)
|
create_target_directory_groups(yuzu-cmd)
|
||||||
|
|
||||||
if (NOT MSVC)
|
if (LINKER STREQUAL "lld")
|
||||||
target_link_options(yuzu-cmd PRIVATE "LINKER:--icf=all,--gc-sections")
|
target_link_options(yuzu-cmd PRIVATE "LINKER:--icf=all")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# needed for vma
|
# needed for vma
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
target_compile_options(yuzu-cmd PRIVATE
|
target_compile_options(yuzu-cmd PRIVATE
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue