waifulib/xcompile: make clang work with original stlport

This commit is contained in:
mittorn 2023-12-13 22:14:07 +03:00 committed by Alibek Omarov
parent 9c097976df
commit ffe1ff326a
1 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,9 @@ class Android:
if cxx and not self.is_clang() and self.toolchain not in ['4.8','4.9']:
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():
# stpcpy() isn't available in early Android versions
# disable it here so Clang won't use it