[Android] -j, not ndk.jobs, in Gradle

This commit is contained in:
Triang3l 2022-07-11 21:46:53 +03:00
parent 037310f8dc
commit 3a065c35f0
1 changed files with 2 additions and 1 deletions

View File

@ -18,13 +18,14 @@ android {
arguments 'NDK_APPLICATION_MK:=../../../build/xenia.Application.mk', arguments 'NDK_APPLICATION_MK:=../../../build/xenia.Application.mk',
'PREMAKE_ANDROIDNDK_PLATFORMS:=Android-ARM64', 'PREMAKE_ANDROIDNDK_PLATFORMS:=Android-ARM64',
'PREMAKE_ANDROIDNDK_PLATFORMS+=Android-x86_64', 'PREMAKE_ANDROIDNDK_PLATFORMS+=Android-x86_64',
// ndk.jobs doesn't work as of Gradle 7.1.0.
"-j${Runtime.runtime.availableProcessors()}",
// Work around "Bad file descriptor" on Windows on NDK r22+. // Work around "Bad file descriptor" on Windows on NDK r22+.
'--output-sync=none' '--output-sync=none'
} }
} }
ndk { ndk {
abiFilters 'arm64-v8a', 'x86_64' abiFilters 'arm64-v8a', 'x86_64'
jobs Runtime.runtime.availableProcessors()
stl 'c++_static' stl 'c++_static'
} }
} }