Skip to content

Commit

Permalink
fix(Makefile): workaround for cmake-3.7.1 problem of using clang tool…
Browse files Browse the repository at this point in the history
…chain

android/ndk#254

opencc crashes when using gcc
build breaks when using clang under cmake-3.7.1

So we should use clang under cmake-3.6 now.
  • Loading branch information
osfans committed Mar 25, 2018
1 parent d6f683d commit 158bbf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ ndk:
ndk-build

android:
cmake -Bbuild-android \
cmake-3.6 -Bbuild-android \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_TOOLCHAIN_FILE=${ANDROID_NDK}/build/cmake/android.toolchain.cmake \
-DANDROID_STL=c++_static \
-DANDROID_PLATFORM=android-14 \
-DANDROID_TOOLCHAIN=gcc \
-DANDROID_TOOLCHAIN=clang \
-DANDROID_ABI=armeabi \
-DLIBRARY_OUTPUT_PATH=../libs/armeabi/ -Hjni
${MAKE} -C build-android rime_jni
Expand Down

0 comments on commit 158bbf5

Please sign in to comment.