diff options
| author | ruki <[email protected]> | 2021-03-21 21:26:34 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-03-21 21:26:34 +0800 |
| commit | 7e37f40d47668f01b8d21255caa40b1b153f5c30 (patch) | |
| tree | c76c4d4ed63693410d6b4eebed06e09d85b27316 | |
| parent | e646f772b78da7fdac107e497970fdd51ba098eb (diff) | |
fix bpf rule
| -rw-r--r-- | xmake/rules/platform/linux/bpf/xmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/platform/linux/bpf/xmake.lua b/xmake/rules/platform/linux/bpf/xmake.lua index df4de7c1d..d2afd9160 100644 --- a/xmake/rules/platform/linux/bpf/xmake.lua +++ b/xmake/rules/platform/linux/bpf/xmake.lua @@ -48,7 +48,7 @@ rule("platform.linux.bpf") target:add("includedirs", path.directory(headerfile)) batchcmds:show_progress(opt.progress, "${color.build.object}compiling.bpf %s", sourcefile) batchcmds:mkdir(path.directory(objectfile)) - batchcmds:compile(sourcefile, objectfile, {configs = {force = {cxflags = {"-target bpf", "-g"}, defines = targetarch}}}) + batchcmds:compile(sourcefile, objectfile, {configs = {force = {cxflags = {"-target bpf", "-g"}}, defines = targetarch}}) batchcmds:mkdir(path.directory(headerfile)) batchcmds:execv("bpftool", {"gen", "skeleton", objectfile}, {stdout = headerfile}) batchcmds:add_depfiles(sourcefile) |
