Pass optimisations to CMake via build.gradle.kts

This passes compiler flags from Gradle to CMake
This commit is contained in:
Mike Lothian 2023-07-17 15:37:59 +01:00
parent 150f59256b
commit 94e793150a

View File

@ -28,7 +28,7 @@ android {
namespace = "org.yuzu.yuzu_emu"
compileSdkVersion = "android-34"
ndkVersion = "26.3.11579264"
ndkVersion = "28.0.12674087"
buildFeatures {
viewBinding = true
@ -171,6 +171,20 @@ android {
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON"
)
cFlags(
"-O3",
"-march=armv8.7a",
"-pipe",
"-flto=thin"
)
cppFlags(
"-O3",
"-march=armv8.7a",
"-pipe",
"-flto=thin"
)
abiFilters("arm64-v8a", "x86_64")
}
}