waifulib/xcompile: disable stpcpy on host-clang

This commit is contained in:
mittorn
2023-11-01 23:34:34 +03:00
committed by Alibek Omarov
parent 313f2a86b0
commit 55943ad1ce

View File

@@ -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: