Skip to content

Commit

Permalink
Fix native build
Browse files Browse the repository at this point in the history
  • Loading branch information
yujincheng08 committed Jul 18, 2024
1 parent fc0ac2e commit 652d6dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ cmaker {
"-DCMAKE_CXX_STANDARD=23",
"-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON",
)
cFlags += "-flto"
cppFlags += "-flto"
}

buildTypes {
Expand Down
1 change: 0 additions & 1 deletion app/src/main/jni/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION 3.28)
project(biliroaming)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_SCAN_FOR_MODULES ON)

find_package(cxx REQUIRED CONFIG)
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/jni/biliroaming.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#include <algorithm>
#include <android/log.h>
#include <errno.h>
#include <fcntl.h>
#include <jni.h>
#include <list>
Expand Down

0 comments on commit 652d6dc

Please sign in to comment.