From f60c398f3265aa7f756aaadfeee6a660c1287008 Mon Sep 17 00:00:00 2001 From: mittorn Date: Wed, 18 Nov 2020 12:34:38 +0300 Subject: [PATCH] scripts/xcompile/android: add ability to specify HOST_TOOLCHAIN and override hard-coded one --- scripts/waifulib/xcompile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/waifulib/xcompile.py b/scripts/waifulib/xcompile.py index 3f0be086..329cf51b 100644 --- a/scripts/waifulib/xcompile.py +++ b/scripts/waifulib/xcompile.py @@ -152,6 +152,8 @@ class Android: def gen_host_toolchain(self): # With host toolchain we don't care about OS # so just download NDK for Linux x86_64 + if 'HOST_TOOLCHAIN' in self.ctx.environ: + return self.ctx.environ['HOST_TOOLCHAIN'] if self.is_host(): return 'linux-x86_64'