From 6c5d06600df7b859791fafb8ea87fd87f63fb825 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 18 Mar 2021 23:29:20 +0800 Subject: improve ndk toolchain --- tests/projects/bpf/minimal/xmake.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/projects') diff --git a/tests/projects/bpf/minimal/xmake.lua b/tests/projects/bpf/minimal/xmake.lua index ed9a0dd0c..8507b8aa1 100644 --- a/tests/projects/bpf/minimal/xmake.lua +++ b/tests/projects/bpf/minimal/xmake.lua @@ -3,7 +3,10 @@ add_rules("platform.linux.bpf") add_requires("linux-tools", {configs = {bpftool = true}}) add_requires("libbpf") -if not is_plat("android") then +if is_plat("android") then + add_requires("ndk >=22.x") + set_toolchains("@ndk", {sdkver = "23"}) +else add_requires("llvm >=10.x") set_toolchains("@llvm") add_requires("linux-headers") -- cgit v1.3.1