File tree Expand file tree Collapse file tree 5 files changed +15
-8
lines changed
bootstrap/src/core/build_steps
ci/docker/host-x86_64/sbf-solana-solana Expand file tree Collapse file tree 5 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -169,6 +169,12 @@ extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) {
169169#define SUBTARGET_BPF
170170#endif
171171
172+ #ifdef LLVM_COMPONENT_SBF
173+ #define SUBTARGET_SBF SUBTARGET (SBF)
174+ #else
175+ #define SUBTARGET_SBF
176+ #endif
177+
172178#define GEN_SUBTARGETS \
173179 SUBTARGET_X86 \
174180 SUBTARGET_ARM \
@@ -185,6 +191,7 @@ extern "C" void LLVMTimeTraceProfilerFinish(const char* FileName) {
185191 SUBTARGET_RISCV \
186192 SUBTARGET_LOONGARCH \
187193 SUBTARGET_BPF \
194+ SUBTARGET_SBF \
188195
189196#define SUBTARGET (x ) \
190197 namespace llvm { \
Original file line number Diff line number Diff line change @@ -208,10 +208,10 @@ pub fn initialize_available_targets() {
208208 ) ;
209209 init_target ! (
210210 llvm_component = "sbf" ,
211- LLVMInitializeBPFTargetInfo ,
212- LLVMInitializeBPFTarget ,
213- LLVMInitializeBPFTargetMC ,
214- LLVMInitializeBPFAsmPrinter ,
215- LLVMInitializeBPFAsmParser
211+ LLVMInitializeSBFTargetInfo ,
212+ LLVMInitializeSBFTarget ,
213+ LLVMInitializeSBFTargetMC ,
214+ LLVMInitializeSBFAsmPrinter ,
215+ LLVMInitializeSBFAsmParser
216216 ) ;
217217}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ targets = "AArch64;X86"
6666# not built by default and the experimental Rust compilation targets that depend
6767# on them will not work unless the user opts in to building them. By default the
6868# `WebAssembly`, `RISCV`, and `BPF` targets are enabled when compiling LLVM from scratch.
69- experimental-targets = " BPF"
69+ experimental-targets = " BPF;SBF "
7070
7171# Cap the number of parallel linker invocations when compiling LLVM.
7272# This can be useful when building LLVM with debug info, which significantly
Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ impl Step for Llvm {
299299 Some ( s) => s,
300300 None => {
301301 "AArch64;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;\
302- Sparc;SystemZ;WebAssembly;X86"
302+ SBF; Sparc;SystemZ;WebAssembly;X86"
303303 }
304304 } ;
305305
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2121
2222RUN PATH="${HOME}/.cargo/bin:${PATH}" \
2323 cargo install --git https://github.com/solana-labs/cargo-run-sbf-tests.git \
24- --rev 8b76e26ee3cddca60297847361b67603e4299209 \
24+ --rev 9d45e79cf11b2fdf0e3572d916fe058823c7c438 \
2525 --bin cargo-run-sbf-tests --root /usr/local
2626
2727COPY scripts/sccache.sh /scripts/
You can’t perform that action at this time.
0 commit comments