From 55943ad1ce97d43951bf387431a4ddbb53ac113b Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 1 Nov 2023 23:34:34 +0300 Subject: [PATCH] waifulib/xcompile: disable stpcpy on host-clang --- scripts/waifulib/xcompile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/waifulib/xcompile.py b/scripts/waifulib/xcompile.py index cfc76283..1804cfb8 100644 --- a/scripts/waifulib/xcompile.py +++ b/scripts/waifulib/xcompile.py @@ -289,7 +289,7 @@ class Android: if cxx and not self.is_clang() and self.toolchain not in ['4.8','4.9']: cflags += ['-fno-sized-deallocation'] - if self.is_clang(): + 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 if self.api < ANDROID_STPCPY_API_MIN: