Skip to content

Commit

Permalink
Set cpu=v1 explicitly
Browse files Browse the repository at this point in the history
Upstream patch
  llvm/llvm-project#107008
makes cpu=v3 as the default. Previously cpu=v1 as the default for bcc.
Let us mark cpu=v1 explicitly for bcc for now to keep it backword
compatible.
  • Loading branch information
Yonghong Song authored and yonghong-song committed Sep 4, 2024
1 parent d472825 commit 6acb86e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cc/bpf_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -574,6 +574,7 @@ int BPFModule::finalize() {
builder.setMCJITMemoryManager(
ebpf::make_unique<MyMemoryManager>(sections_p, &*prog_func_info_));
builder.setMArch("bpf");
builder.setMCPU("v1");
#if LLVM_VERSION_MAJOR <= 11
builder.setUseOrcMCJITReplacement(false);
#endif
Expand Down

0 comments on commit 6acb86e

Please sign in to comment.