From b1473953a39de67a41d039f945b9acaaa03e44a9 Mon Sep 17 00:00:00 2001 From: Duy Tran Khanh <40482367+khanhduytran0@users.noreply.github.com> Date: Sun, 22 Aug 2021 05:53:57 +0700 Subject: [PATCH] Attempt to enable precompiled headers for iOS --- buildjdk.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildjdk.sh b/buildjdk.sh index 00347d2..07bb34c 100755 --- a/buildjdk.sh +++ b/buildjdk.sh @@ -41,7 +41,8 @@ if [ "$BUILD_IOS" != "1" ]; then else ln -s -f /opt/X11/include/X11 $ANDROID_INCLUDE/ platform_args="--with-toolchain-type=clang" - AUTOCONF_x11arg="--with-x=/opt/X11/include/X11 --disable-precompiled-headers --prefix=/usr/lib" + # --disable-precompiled-headers + AUTOCONF_x11arg="--with-x=/opt/X11/include/X11 --prefix=/usr/lib" sameflags="-arch arm64 -isysroot $thesysroot -miphoneos-version-min=12.0 -DHEADLESS=1 -I$PWD/ios-missing-include -Wno-implicit-function-declaration" export CFLAGS+=" $sameflags" export CXXFLAGS="$sameflags"