Skip to content

Commit 0e322ef

Browse files
authored
1 parent dfbad9d commit 0e322ef

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

toolchain/android-toolchain-gcc.xml

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@
6666
<exe name="${EXEPREFIX}-g++" />
6767

6868
<!-- These must appear in this order! -->
69-
<flag value="--sysroot=${ANDROID_NDK_ROOT}/platforms/${PLATFORM}/${PLATFORM_ARCH}"/>
69+
<flag value="--sysroot=${ANDROID_NDK_ROOT}/platforms/${PLATFORM}/${PLATFORM_ARCH}" unless="NDKV14+" />
70+
<section if="NDKV14+">
71+
<flag value="--sysroot=${ANDROID_NDK_ROOT}/sysroot" />
72+
<flag name="-isystem" value="${ANDROID_NDK_ROOT}/sysroot/usr/include/${EXEPREFIX}" />
73+
<flag value="-D__ANDROID_API__=${HXCPP_ANDROID_PLATFORM}" />
74+
</section>
7075
<section if="NDKV8+">
7176
<flag value="-I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/${TOOLCHAIN_VERSION}/include" />
7277
<flag value="-I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/${TOOLCHAIN_VERSION}/libs/${ABI}/include" />

0 commit comments

Comments
 (0)