Skip to content

BPF 工程實現可執行文件與 BPF 文件獨立編譯 #5940

Answered by Carryme1899
Carryme1899 asked this question in Q&A
Discussion options

You must be logged in to vote

可以了,在 target bpfobj 指定 set_policy("build.fence", true) 就行
我以為 add_deps 就足以保證構建順序,但忘了併行化的影響

原先問題是這樣的,target bin 的 header 依賴 target bpfobj 編譯後用 bpftool 生成
實際上需求就和 #5003 (comment) 描述相同

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Carryme1899
Comment options

Answer selected by Carryme1899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants