aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/build_commands.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo/build_commands.py')
-rw-r--r--python/servo/build_commands.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 9aae8e31320..63b7ebd19fd 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -306,6 +306,9 @@ class MachCommands(CommandBase):
"-I" + cxx_include,
"-I" + cxxabi_include])
env["NDK_ANDROID_VERSION"] = android_platform.replace("android-", "")
+ env['CPPFLAGS'] = ' '.join(["--sysroot", env['ANDROID_SYSROOT']])
+ env["CMAKE_ANDROID_ARCH_ABI"] = self.config["android"]["lib"]
+ env["CMAKE_TOOLCHAIN_FILE"] = path.join(self.android_support_dir(), "toolchain.cmake")
cargo_binary = "cargo" + BIN_SUFFIX