| ... | @@ -2719,6 +2719,9 @@ pub const DeclGen = struct { | ... | @@ -2719,6 +2719,9 @@ pub const DeclGen = struct { |
| 2719 | if (comp.bin_file.options.llvm_cpu_features) |s| { | 2719 | if (comp.bin_file.options.llvm_cpu_features) |s| { |
| 2720 | llvm_fn.addFunctionAttr("target-features", s); | 2720 | llvm_fn.addFunctionAttr("target-features", s); |
| 2721 | } | 2721 | } |
| | 2722 | if (comp.getTarget().cpu.arch.isBpf()) { |
| | 2723 | llvm_fn.addFunctionAttr("no-builtins", ""); |
| | 2724 | } |
| 2722 | } | 2725 | } |
| 2723 | | 2726 | |
| 2724 | fn resolveGlobalDecl(dg: *DeclGen, decl_index: Module.Decl.Index) Error!*llvm.Value { | 2727 | fn resolveGlobalDecl(dg: *DeclGen, decl_index: Module.Decl.Index) Error!*llvm.Value { |