scripts: waifulib: xcompile: fix build error with newer NDKs caused by incompatibility of legacy STL and Clang

This commit is contained in:
Alibek Omarov
2026-05-07 12:05:26 +05:00
parent c8e1c2673f
commit 1b7f50d3c6

View File

@@ -332,8 +332,10 @@ class Android:
'-isystem', '%s/usr/include/' % (self.sysroot())
]
cflags += ['-I%s' % (self.system_stl())]
# only use provided STL implementations with GCC-based NDKs
# newer Clang based do everything we need automatically
if not self.is_clang():
cflags += ['-I%s' % (self.system_stl())]
cflags += ['-DANDROID', '-D__ANDROID__']
if cxx and not self.is_clang() and self.toolchain not in ['4.8','4.9']: