We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2325634 commit 247e024Copy full SHA for 247e024
.vscode/settings.json
@@ -4,6 +4,7 @@
4
"if_ether.h": "c"
5
},
6
"github-actions.workflows.pinned.workflows": [
7
- ".github/workflows/auto.yml"
+ ".github/workflows/auto.yml",
8
+ ".github/workflows/test.yml"
9
]
10
}
socket_filter/build.rs
@@ -22,11 +22,14 @@ fn main() {
22
23
24
25
- if cfg!(not(feature = "static")) {
26
- println!("cargo:rustc-link-lib=bpf");
27
- } else {
28
- println!("cargo:rustc-link-lib=static=bpf");
29
- }
+ println!(
+ "cargo:rustc-link-lib={}bpf",
+ if cfg!(feature = "static") {
+ "static="
+ } else {
30
+ ""
31
+ }
32
+ );
33
} else {
34
// 使用当前文件夹的vmlinux.h
35
builder.clang_args(["-I."]);
0 commit comments