Skip to content

Commit

Permalink
Work around a strange bug in Qt5 that causes melonDS to crash on launch
Browse files Browse the repository at this point in the history
...but only with LTO enabled
...but only on some UNIX systems
...but only with some additional build options except when it breaks
   without any as well
  • Loading branch information
nadiaholmquist committed Jul 16, 2023
1 parent fbb41bd commit e6cc4b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/frontend/qt_sdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,10 @@ if (UNIX AND NOT APPLE)

install(FILES ${CMAKE_SOURCE_DIR}/res/net.kuribo64.melonDS.desktop DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)
install(TARGETS melonDS BUNDLE DESTINATION ${CMAKE_BINARY_DIR} RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

if (NOT USE_QT6)
set_target_properties(melonDS PROPERTIES
INTERPROCEDURAL_OPTIMIZATION OFF
INTERPROCEDURAL_OPTIMIZATION_RELEASE OFF)
endif()
endif()

0 comments on commit e6cc4b1

Please sign in to comment.