summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-04-17 08:11:53 +0800
committerGitHub <[email protected]>2022-04-17 08:11:53 +0800
commit77ed9022bce7632272ed7f187f7a46774062def2 (patch)
tree82f5d1ca8bbedfdf7ad6e859f74ee0ee7708bc6b
parenta4723aca5f13984010556d190be7d8790406d678 (diff)
Update xmake.lua
-rw-r--r--xmake/rules/platform/linux/bpf/xmake.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/rules/platform/linux/bpf/xmake.lua b/xmake/rules/platform/linux/bpf/xmake.lua
index b14e6a9a0..d78693708 100644
--- a/xmake/rules/platform/linux/bpf/xmake.lua
+++ b/xmake/rules/platform/linux/bpf/xmake.lua
@@ -46,10 +46,9 @@ rule("platform.linux.bpf")
targetarch = "__TARGET_ARCH_powerpc"
end
target:add("includedirs", path.directory(headerfile))
- target:set("optimize", "faster")
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", "-O2"}}, defines = targetarch}})
batchcmds:mkdir(path.directory(headerfile))
batchcmds:execv("bpftool", {"gen", "skeleton", objectfile}, {stdout = headerfile})
batchcmds:add_depfiles(sourcefile)