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 @@ -173,6 +173,12 @@ extern "C" void LLVMRustTimeTraceProfilerFinish(const char* FileName) {
173
173
#define SUBTARGET_BPF
174
174
#endif
175
175
176
+ #ifdef LLVM_COMPONENT_SBF
177
+ #define SUBTARGET_SBF SUBTARGET (SBF)
178
+ #else
179
+ #define SUBTARGET_SBF
180
+ #endif
181
+
176
182
#define GEN_SUBTARGETS \
177
183
SUBTARGET_X86 \
178
184
SUBTARGET_ARM \
@@ -189,6 +195,7 @@ extern "C" void LLVMRustTimeTraceProfilerFinish(const char* FileName) {
189
195
SUBTARGET_RISCV \
190
196
SUBTARGET_LOONGARCH \
191
197
SUBTARGET_BPF \
198
+ SUBTARGET_SBF \
192
199
193
200
#define SUBTARGET (x ) \
194
201
namespace llvm { \
Original file line number Diff line number Diff line change @@ -206,10 +206,10 @@ pub fn initialize_available_targets() {
206
206
) ;
207
207
init_target ! (
208
208
llvm_component = "sbf" ,
209
- LLVMInitializeBPFTargetInfo ,
210
- LLVMInitializeBPFTarget ,
211
- LLVMInitializeBPFTargetMC ,
212
- LLVMInitializeBPFAsmPrinter ,
213
- LLVMInitializeBPFAsmParser
209
+ LLVMInitializeSBFTargetInfo ,
210
+ LLVMInitializeSBFTarget ,
211
+ LLVMInitializeSBFTargetMC ,
212
+ LLVMInitializeSBFAsmPrinter ,
213
+ LLVMInitializeSBFAsmParser
214
214
) ;
215
215
}
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 @@ -322,7 +322,7 @@ impl Step for Llvm {
322
322
Some ( s) => s,
323
323
None => {
324
324
"AArch64;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;\
325
- Sparc;SystemZ;WebAssembly;X86"
325
+ SBF; Sparc;SystemZ;WebAssembly;X86"
326
326
}
327
327
} ;
328
328
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