mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-05 21:53:03 +02:00
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:
parent
7c066a2b24
commit
f355a6585e
2 changed files with 2 additions and 2 deletions
2
.github/workflows/autobuild.yml
vendored
2
.github/workflows/autobuild.yml
vendored
|
@ -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: |
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue