2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 18:07:09 +01:00

waifulib/xcompile: make clang work with original stlport

This commit is contained in:
mittorn 2023-12-13 22:14:07 +03:00
parent 35c75438be
commit e43015ec34

View File

@ -302,6 +302,9 @@ class Android:
if cxx and not self.is_clang() and self.toolchain not in ['4.8','4.9']: if cxx and not self.is_clang() and self.toolchain not in ['4.8','4.9']:
cflags += ['-fno-sized-deallocation'] cflags += ['-fno-sized-deallocation']
if cxx and (self.is_clang() or self.is_host()):
cflags += [ '-Wno-dynamic-exception-spec', '-fno-rtti' ]
if self.is_clang() or self.is_host(): if self.is_clang() or self.is_host():
# stpcpy() isn't available in early Android versions # stpcpy() isn't available in early Android versions
# disable it here so Clang won't use it # disable it here so Clang won't use it