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

@@ -38,6 +38,7 @@ class CrossGccToolchain:
def __init__(self, toolchain_path, arch,
tarball_path, src_path, build_path, install_prefix):
self.arch = arch
self.actual_arch = arch
self.tarball_path = tarball_path
self.src_path = src_path
self.build_path = build_path