diff options
| author | ruki <[email protected]> | 2021-03-18 00:11:45 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-18 00:11:45 +0800 |
| commit | 82b6c00487a3119906329e61513981dfa9a36297 (patch) | |
| tree | 5b50a03e10c11e774b77b1412b81e138460cddaa | |
| parent | a66a85f6f840f63df45416ce756dafd3dfef4451 (diff) | |
improve bpf test
| -rw-r--r-- | tests/projects/bpf/minimal/xmake.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/projects/bpf/minimal/xmake.lua b/tests/projects/bpf/minimal/xmake.lua index df6a7f874..ed9a0dd0c 100644 --- a/tests/projects/bpf/minimal/xmake.lua +++ b/tests/projects/bpf/minimal/xmake.lua @@ -1,15 +1,16 @@ add_rules("mode.release", "mode.debug") add_rules("platform.linux.bpf") -add_requires("linux-tools", {alias = "bpftool", host = true, configs = {bpftool = true}}) -add_requires("libbpf", "linux-headers") +add_requires("linux-tools", {configs = {bpftool = true}}) +add_requires("libbpf") if not is_plat("android") then add_requires("llvm >=10.x") set_toolchains("@llvm") + add_requires("linux-headers") end target("minimal") set_kind("binary") add_files("src/*.c") - add_packages("bpftool", "libbpf", "linux-headers") + add_packages("linux-tools", "linux-headers", "libbpf") set_license("GPL-2.0") |
