python/build/cmake.py: use CMAKE_TOOLCHAIN_FILE

Let cmake know that we're cross-crompiling.
This commit is contained in:
Max Kellermann
2021-09-20 22:54:54 +02:00
parent e4f933361e
commit 2699889342
3 changed files with 41 additions and 12 deletions

View File

@@ -83,6 +83,7 @@ class AndroidNdkToolchain:
install_prefix = os.path.join(arch_path, 'root')
self.arch = arch
self.actual_arch = arch
self.install_prefix = install_prefix
llvm_path = os.path.join(ndk_path, 'toolchains', 'llvm', 'prebuilt', build_arch)