File tree Expand file tree Collapse file tree 7 files changed +32
-9
lines changed Expand file tree Collapse file tree 7 files changed +32
-9
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,21 @@ struct SStruct {
16
16
z : u64 ,
17
17
}
18
18
19
+ #[ allow( dead_code) ]
20
+ #[ repr( C ) ]
21
+ enum TestEnum {
22
+ VariantOne ,
23
+ VariantTwo ,
24
+ }
25
+
26
+ #[ allow( dead_code) ]
27
+ #[ allow( clippy:: enum_clike_unportable_variant) ]
28
+ #[ repr( C ) ]
29
+ enum Test64BitEnum {
30
+ VariantOne ,
31
+ VariantTwo = 0xFFFFFFFFF ,
32
+ }
33
+
19
34
#[ inline( never) ]
20
35
fn return_sstruct ( ) -> SStruct {
21
36
SStruct { x : 1 , y : 2 , z : 3 }
@@ -72,6 +87,14 @@ pub fn process_instruction(
72
87
assert ! ( 1.9986f64 < num && num < 2.0f64 ) ;
73
88
}
74
89
90
+ {
91
+ // #[repr(C) enums must not change size between compiler version
92
+ // 32-bit for #[repr(C)] enum
93
+ assert_eq ! ( std:: mem:: size_of:: <TestEnum >( ) , 4 ) ;
94
+ // 64-bit for enum with a declared value
95
+ assert_eq ! ( std:: mem:: size_of:: <Test64BitEnum >( ) , 8 ) ;
96
+ }
97
+
75
98
check_type_assumptions ( ) ;
76
99
77
100
sol_log_compute_units ( ) ;
Original file line number Diff line number Diff line change @@ -1356,7 +1356,7 @@ fn assert_instruction_count() {
1356
1356
#[ cfg( feature = "sbf_c" ) ]
1357
1357
{
1358
1358
programs. extend_from_slice ( & [
1359
- ( "alloc" , 11502 ) ,
1359
+ ( "alloc" , 14575 ) ,
1360
1360
( "sbf_to_sbf" , 313 ) ,
1361
1361
( "multiple_static" , 208 ) ,
1362
1362
( "noop" , 5 ) ,
Original file line number Diff line number Diff line change @@ -109,16 +109,16 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
109
109
fi
110
110
111
111
# Install Rust-BPF
112
- version=v1.39
112
+ version=v1.41
113
113
if [[ ! -e bpf-tools-$version .md || ! -e bpf-tools ]]; then
114
114
(
115
115
set -e
116
116
rm -rf bpf-tools*
117
117
rm -rf xargo
118
118
job=" download \
119
- https://github.com/solana-labs/bpf -tools/releases/download \
119
+ https://github.com/anza-xyz/platform -tools/releases/download \
120
120
$version \
121
- solana-bpf -tools-${machine} -${arch} .tar.bz2 \
121
+ platform -tools-${machine} -${arch} .tar.bz2 \
122
122
bpf-tools"
123
123
get $version bpf-tools " $job "
124
124
)
Original file line number Diff line number Diff line change @@ -913,7 +913,7 @@ fn main() {
913
913
914
914
// The following line is scanned by CI configuration script to
915
915
// separate cargo caches according to the version of platform-tools.
916
- let platform_tools_version = String :: from ( "v1.39 " ) ;
916
+ let platform_tools_version = String :: from ( "v1.41 " ) ;
917
917
let rust_base_version = get_base_rust_version ( platform_tools_version. as_str ( ) ) ;
918
918
let version = format ! (
919
919
"{}\n platform-tools {}\n {}" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ repository = { workspace = true }
9
9
homepage = { workspace = true }
10
10
license = { workspace = true }
11
11
edition = { workspace = true }
12
- rust-version = " 1.72 .0" # solana platform-tools rust version
12
+ rust-version = " 1.75 .0" # solana platform-tools rust version
13
13
14
14
[dependencies ]
15
15
bincode = { workspace = true }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ OUT_DIR ?= ./out
15
15
OS := $(shell uname)
16
16
17
17
LLVM_DIR = $(LOCAL_PATH ) ../dependencies/platform-tools/llvm
18
- LLVM_SYSTEM_INC_DIRS := $(LLVM_DIR ) /lib/clang/15.0.4 /include
18
+ LLVM_SYSTEM_INC_DIRS := $(LLVM_DIR ) /lib/clang/17 /include
19
19
COMPILER_RT_DIR = $(LOCAL_PATH ) ../dependencies/platform-tools/rust/lib/rustlib/sbf-solana-solana/lib
20
20
STD_INC_DIRS := $(LLVM_DIR ) /include
21
21
STD_LIB_DIRS := $(LLVM_DIR ) /lib
Original file line number Diff line number Diff line change @@ -109,13 +109,13 @@ if [[ ! -e criterion-$version.md || ! -e criterion ]]; then
109
109
fi
110
110
111
111
# Install platform tools
112
- version=v1.39
112
+ version=v1.41
113
113
if [[ ! -e platform-tools-$version .md || ! -e platform-tools ]]; then
114
114
(
115
115
set -e
116
116
rm -rf platform-tools*
117
117
job=" download \
118
- https://github.com/solana-labs /platform-tools/releases/download \
118
+ https://github.com/anza-xyz /platform-tools/releases/download \
119
119
$version \
120
120
platform-tools-${machine} -${arch} .tar.bz2 \
121
121
platform-tools"
You can’t perform that action at this time.
0 commit comments