Skip to content

Commit

Permalink
build: Do not enable LTO on Android
Browse files Browse the repository at this point in the history
Signed-off-by: sekaiacg <[email protected]>
  • Loading branch information
sekaiacg committed May 2, 2023
1 parent 56af028 commit 6c88bf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ cmake_build()
-DANDROID_ABI="$ABI" \
-DANDROID_STL="c++_static" \
-DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake" \
-DANDROID_USE_LEGACY_TOOLCHAIN_FILE="OFF" \
-DENABLE_FULL_LTO="ON"
-DANDROID_USE_LEGACY_TOOLCHAIN_FILE="OFF"
elif [[ $TARGET == "Linux" ]]; then
local LINUX_PLATFORM=$4
local WSL="OFF"
Expand Down

0 comments on commit 6c88bf1

Please sign in to comment.