summaryrefslogtreecommitdiff
path: root/xmake/rules/platform
diff options
context:
space:
mode:
authorruki <[email protected]>2022-05-22 19:34:26 +0800
committerruki <[email protected]>2022-05-22 19:34:26 +0800
commitbf34cd08b63a0a1c8314ca8b81c7fe04cc8531f1 (patch)
tree300c07aa1807dbefabdbb3fa01dc3e3db86bf1c3 /xmake/rules/platform
parente96506ac537795a441e27338f485564fc11fdf5c (diff)
improve more rules
Diffstat (limited to 'xmake/rules/platform')
-rw-r--r--xmake/rules/platform/linux/bpf/xmake.lua2
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 d78693708..d4a48e70c 100644
--- a/xmake/rules/platform/linux/bpf/xmake.lua
+++ b/xmake/rules/platform/linux/bpf/xmake.lua
@@ -50,7 +50,7 @@ rule("platform.linux.bpf")
batchcmds:mkdir(path.directory(objectfile))
batchcmds:compile(sourcefile, objectfile, {configs = {force = {cxflags = {"-target bpf", "-g", "-O2"}}, defines = targetarch}})
batchcmds:mkdir(path.directory(headerfile))
- batchcmds:execv("bpftool", {"gen", "skeleton", objectfile}, {stdout = headerfile})
+ batchcmds:execv("bpftool", {"gen", "skeleton", path(objectfile)}, {stdout = headerfile})
batchcmds:add_depfiles(sourcefile)
batchcmds:set_depmtime(os.mtime(headerfile))
batchcmds:set_depcache(target:dependfile(headerfile))