Disable LTO when using OpenOrbis toolchain

This toolchain doesn't support `-ffat-lto-objects`, so we can't use LTO
properly. Doesn't support C++ exceptions either.
This commit is contained in:
刘皓 2025-02-14 21:29:44 -05:00
parent 7c066a2b24
commit f355a6585e
No known key found for this signature in database
GPG key ID: 7901753DB465B711
2 changed files with 2 additions and 2 deletions

View file

@ -1152,7 +1152,7 @@ jobs:
echo "endian = 'little'" | tee -a ~/cross.ini
echo '--------------------------------------------------------------------------------'
git config --global --add safe.directory "$(pwd)"
CLICOLOR_FORCE=1 meson setup build --cross-file ~/cross.ini --buildtype release -Db_lto=true -Dlibretro=true
CLICOLOR_FORCE=1 meson setup build --cross-file ~/cross.ini --buildtype release -Db_lto=false -Dlibretro=true
- name: Build core
run: |

View file

@ -42,7 +42,7 @@ if is_libretro
if host_endian == 'big'
libretro_defines += '-DMKXPZ_BIG_ENDIAN'
endif
if is_emscripten or not compilers['cpp'].compiles('struct E {}; int main() { throw E(); }', name: 'check if C++ exceptions are enabled')
if is_emscripten or not compilers['cpp'].compiles('struct E {}; int main() { throw E(); }', name: 'check if C++ exceptions are supported')
libretro_defines += '-DMKXPZ_NO_EXCEPTIONS'
libretro_defines += '-DBOOST_NO_EXCEPTIONS'
endif