Skip to content

Commit

Permalink
fix build errors on 2.26.1 + ndk r23
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Feb 4, 2023
1 parent 230cccc commit 8c417c9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ jobs:
- name: Install Android packages
run: |
sdkmanager \
"cmake;3.10.2.4988404" \
"cmake;3.18.1" \
"cmake;3.22.1" \
"ndk;23.2.8568313"
# move out builtin icu headers from ndk and prevent icu build errors
mv "${ANDROID_HOME}/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/unicode" "${ANDROID_HOME}/ndk/23.2.8568313/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/unicode2"
Expand Down
1 change: 0 additions & 1 deletion scripts/compile/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ COMMON_LDFLAGS=" \
-Wl,-z,noexecstack \
-Wl,--gc-sections \
-Wl,--exclude-libs,libgcc.a \
-Wl,--exclude-libs,libunwind.a \
-Wl,--no-undefined \
"

Expand Down
3 changes: 3 additions & 0 deletions scripts/compile/jsc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ $TARGETDIR/webkit/Tools/Scripts/build-webkit \
--no-netscape-plugin-api \
--no-tools \
--cmakeargs="-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
-DUSE_LD_GOLD=OFF \
-DANDROID_ABI=${JNI_ARCH} \
-DANDROID_PLATFORM=${ANDROID_API} \
-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=BOTH \
Expand Down Expand Up @@ -92,3 +93,5 @@ cp $TARGETDIR/webkit/WebKitBuild/$BUILD_TYPE/lib/libjsc.so $INSTALL_UNSTRIPPED_D
cp $TARGETDIR/webkit/WebKitBuild/$BUILD_TYPE/lib/libjsc.so $INSTALL_DIR_I18N/$JNI_ARCH
$TOOLCHAIN_DIR/bin/llvm-strip $INSTALL_DIR_I18N/$JNI_ARCH/libjsc.so
mv $TARGETDIR/webkit/WebKitBuild $TARGETDIR/webkit/${CROSS_COMPILE_PLATFORM}-${FLAVOR}

cp $TOOLCHAIN_DIR/sysroot/usr/lib/$CROSS_COMPILE_PLATFORM/libc++_shared.so $INSTALL_CPPRUNTIME_DIR

0 comments on commit 8c417c9

Please sign in to comment.