mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
scripts: waifulib: xcompile: fix build error with newer NDKs caused by incompatibility of legacy STL and Clang
This commit is contained in:
@@ -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']:
|
||||
|
||||
Reference in New Issue
Block a user