psvita: fno-short-enums, make ref_gl function somewhat

This commit is contained in:
fgsfds
2023-02-14 23:41:11 +01:00
committed by Alibek Omarov
parent 97a7de3377
commit 6304b51f32
5 changed files with 48 additions and 7 deletions

View File

@@ -480,7 +480,7 @@ class PSVita:
# this optimization is broken in vitasdk
cflags += ['-fno-optimize-sibling-calls']
# disable some ARM bullshit
cflags += ['-fsigned-char', '-Wno-attributes']
cflags += ['-fsigned-char', '-fno-short-enums', '-Wno-attributes']
# base include dir
cflags += ['-isystem %s/arm-vita-eabi/include' % self.vitasdk_dir]
# SDL include dir
@@ -495,6 +495,8 @@ class PSVita:
# they go before object list
def linkflags(self):
linkflags = ['-Wl,--hash-style=sysv', '-Wl,-q', '-Wl,-z,nocopyreloc', '-mtune=cortex-a9', '-mfpu=neon']
# enforce no-short-enums again
linkflags += ['-Wl,-no-enum-size-warning', '-fno-short-enums']
return linkflags
def ldflags(self):