Skip to content

Commit 4dd5212

Browse files
Yonghong Songdkruces
authored andcommitted
Set cpu=v1 explicitly
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.
1 parent aeab093 commit 4dd5212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cc/bpf_module.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ int BPFModule::finalize() {
574574
builder.setMCJITMemoryManager(
575575
ebpf::make_unique<MyMemoryManager>(sections_p, &*prog_func_info_));
576576
builder.setMArch("bpf");
577+
builder.setMCPU("v1");
577578
#if LLVM_VERSION_MAJOR <= 11
578579
builder.setUseOrcMCJITReplacement(false);
579580
#endif

0 commit comments

Comments
 (0)