diff options
| author | ruki <[email protected]> | 2021-03-17 23:16:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-17 23:16:44 +0800 |
| commit | 9bc4cf11a7841fd12baa024d1ee328bc478e07a8 (patch) | |
| tree | 28bd839e0e665c4c9a8016eee9370b121d2f590c | |
| parent | 485939cd355ca53d74c548ce6bb4e1646915b82e (diff) | |
improve bpf rule
| -rw-r--r-- | xmake/rules/platform/linux/bpf/xmake.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/rules/platform/linux/bpf/xmake.lua b/xmake/rules/platform/linux/bpf/xmake.lua index d9bec3fc6..08af19710 100644 --- a/xmake/rules/platform/linux/bpf/xmake.lua +++ b/xmake/rules/platform/linux/bpf/xmake.lua @@ -23,6 +23,7 @@ rule("platform.linux.bpf") set_extensions(".bpf.c") on_config(function (target) + assert(is_host("linux"), 'rule("platform.linux.bpf"): only supported on linux!') local headerdir = path.join(target:autogendir(), "rules", "bpf") target:add("includedirs", headerdir) end) |
