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 @@ -174,6 +174,12 @@ extern "C" void LLVMRustTimeTraceProfilerFinish(const char *FileName) {
174
174
#define SUBTARGET_BPF
175
175
#endif
176
176
177
+ #ifdef LLVM_COMPONENT_SBF
178
+ #define SUBTARGET_SBF SUBTARGET (SBF)
179
+ #else
180
+ #define SUBTARGET_SBF
181
+ #endif
182
+
177
183
#define GEN_SUBTARGETS \
178
184
SUBTARGET_X86 \
179
185
SUBTARGET_ARM \
@@ -191,6 +197,7 @@ extern "C" void LLVMRustTimeTraceProfilerFinish(const char *FileName) {
191
197
SUBTARGET_RISCV \
192
198
SUBTARGET_LOONGARCH \
193
199
SUBTARGET_BPF \
200
+ SUBTARGET_SBF \
194
201
195
202
#define SUBTARGET (x ) \
196
203
namespace llvm { \
Original file line number Diff line number Diff line change @@ -250,10 +250,10 @@ pub fn initialize_available_targets() {
250
250
) ;
251
251
init_target ! (
252
252
llvm_component = "sbf" ,
253
- LLVMInitializeBPFTargetInfo ,
254
- LLVMInitializeBPFTarget ,
255
- LLVMInitializeBPFTargetMC ,
256
- LLVMInitializeBPFAsmPrinter ,
257
- LLVMInitializeBPFAsmParser
253
+ LLVMInitializeSBFTargetInfo ,
254
+ LLVMInitializeSBFTarget ,
255
+ LLVMInitializeSBFTargetMC ,
256
+ LLVMInitializeSBFAsmPrinter ,
257
+ LLVMInitializeSBFAsmParser
258
258
) ;
259
259
}
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ targets = "AArch64;X86"
66
66
# not built by default and the experimental Rust compilation targets that depend
67
67
# on them will not work unless the user opts in to building them. By default the
68
68
# `WebAssembly`, `RISCV`, and `BPF` targets are enabled when compiling LLVM from scratch.
69
- experimental-targets = " BPF"
69
+ experimental-targets = " BPF;SBF "
70
70
71
71
# Cap the number of parallel linker invocations when compiling LLVM.
72
72
# This can be useful when building LLVM with debug info, which significantly
Original file line number Diff line number Diff line change @@ -332,7 +332,7 @@ impl Step for Llvm {
332
332
Some ( s) => s,
333
333
None => {
334
334
"AArch64;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;\
335
- Sparc;SystemZ;WebAssembly;X86"
335
+ SBF; Sparc;SystemZ;WebAssembly;X86"
336
336
}
337
337
} ;
338
338
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
21
21
22
22
RUN PATH="${HOME}/.cargo/bin:${PATH}" \
23
23
cargo install --git https://github.com/solana-labs/cargo-run-sbf-tests.git \
24
- --rev 8b76e26ee3cddca60297847361b67603e4299209 \
24
+ --rev 9d45e79cf11b2fdf0e3572d916fe058823c7c438 \
25
25
--bin cargo-run-sbf-tests --root /usr/local
26
26
27
27
COPY scripts/sccache.sh /scripts/
You can’t perform that action at this time.
0 commit comments