Add LTO toggle

This commit is contained in:
wheremyfoodat 2023-06-15 02:42:01 +03:00
parent 3cf4bdd95f
commit 19ab9b08e0

View file

@ -151,4 +151,7 @@ source_group("Source Files\\Third Party" FILES ${THIRD_PARTY_SOURCE_FILES})
add_executable(Alber ${SOURCE_FILES} ${FS_SOURCE_FILES} ${KERNEL_SOURCE_FILES} ${LOADER_SOURCE_FILES} ${SERVICE_SOURCE_FILES}
${PICA_SOURCE_FILES} ${RENDERER_GL_SOURCE_FILES} ${THIRD_PARTY_SOURCE_FILES} ${HEADER_FILES})
# Uncomment to enable LTO
# set_target_properties(Alber PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
target_link_libraries(Alber PRIVATE dynarmic SDL2-static)