diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2023-07-16 15:46:50 +0200 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2023-07-16 15:49:51 +0200 |
commit | e6cc4b14b0eb603001e968be9b1ace8a09e1bce1 (patch) | |
tree | 52e9c41ad63661c29bd517c375d41d1caff98e75 /src/frontend | |
parent | fbb41bd73db13d6ae062f6aeee129e8036459b89 (diff) |
Work around a strange bug in Qt5 that causes melonDS to crash on launch
...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
Diffstat (limited to 'src/frontend')
-rw-r--r-- | src/frontend/qt_sdl/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/CMakeLists.txt b/src/frontend/qt_sdl/CMakeLists.txt index 0ae6ece..2426103 100644 --- a/src/frontend/qt_sdl/CMakeLists.txt +++ b/src/frontend/qt_sdl/CMakeLists.txt @@ -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() |