mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-25 00:03:44 +02:00
Use -mword-relocations -fno-optimize-sibling-calls
in libretro PlayStation Vita builds
The Vita builds of RetroArch and some libretro cores use these two flags, supposedly to fix relocation-related bugs. (cherry picked from commit 3c43cd5747b19bd4d9c0202fec1a68677ddbd5af)
This commit is contained in:
parent
5754c8b4f1
commit
afec0dc50d
1 changed files with 12 additions and 0 deletions
12
meson.build
12
meson.build
|
@ -64,6 +64,18 @@ if is_libretro
|
|||
error('LTO is required when building for PowerPC architectures. Please pass either `-Db_lto=true` or `-Druby_lto=true` to Meson.')
|
||||
endif
|
||||
|
||||
if is_vita
|
||||
compilers['c'].has_argument('-mword-relocations', required: true)
|
||||
compilers['cpp'].has_argument('-mword-relocations', required: true)
|
||||
libretro_cflags += '-mword-relocations'
|
||||
libretro_cppflags += '-mword-relocations'
|
||||
|
||||
compilers['c'].has_argument('-fno-optimize-sibling-calls', required: true)
|
||||
compilers['cpp'].has_argument('-fno-optimize-sibling-calls', required: true)
|
||||
libretro_cflags += '-fno-optimize-sibling-calls'
|
||||
libretro_cppflags += '-fno-optimize-sibling-calls'
|
||||
endif
|
||||
|
||||
if is_devkitarm
|
||||
compilers['c'].has_argument('-march=armv6k', required: true)
|
||||
compilers['cpp'].has_argument('-march=armv6k', required: true)
|
||||
|
|
Loading…
Add table
Reference in a new issue