From e43015ec3405c3cc52715777022a7794553d5947 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 13 Dec 2023 22:14:07 +0300 Subject: [PATCH] waifulib/xcompile: make clang work with original stlport --- scripts/waifulib/xcompile.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/waifulib/xcompile.py b/scripts/waifulib/xcompile.py index 8f5a9e28..37905afc 100644 --- a/scripts/waifulib/xcompile.py +++ b/scripts/waifulib/xcompile.py @@ -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