diff options
| author | ruki <[email protected]> | 2021-03-18 23:29:20 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-18 23:29:20 +0800 |
| commit | 6c5d06600df7b859791fafb8ea87fd87f63fb825 (patch) | |
| tree | 87543d39131ce6437a70a4355fb291e7b0867182 /tests/projects | |
| parent | 5f4104bb7c5b188965f30d401762162294764b73 (diff) | |
improve ndk toolchain
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/bpf/minimal/xmake.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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") |
