Skip to content

Commit fcacb1c

Browse files
dmakarovLucasSte
authored andcommitted
[SOL] Add os field to SBF target specification
1 parent c264266 commit fcacb1c

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

compiler/rustc_target/src/spec/sbf_base.rs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,30 @@ SECTIONS
3838

3939
TargetOptions {
4040
allow_asm: true,
41-
endian: Endian::Little,
4241
c_int_width: "64".to_string(),
42+
dll_prefix: "".to_string(),
43+
dynamic_linking: true,
44+
eh_frame_header: false,
45+
emit_debug_gdb_scripts: false,
46+
endian: Endian::Little,
4347
env: String::new(),
48+
executables: true,
4449
features: "+solana".to_string(),
45-
vendor: "solana".to_string(),
50+
link_script: Some(linker_script.to_string()),
51+
linker: Some("rust-lld".to_owned()),
4652
linker_flavor: LinkerFlavor::Lld(LldFlavor::Ld),
4753
linker_is_gnu: true,
48-
linker: Some("rust-lld".to_owned()),
49-
link_script: Some(linker_script.to_string()),
50-
pre_link_args,
51-
executables: true,
52-
dll_prefix: "".to_string(),
53-
dynamic_linking: true,
54-
only_cdylib: true,
54+
main_needs_argc_argv: false,
55+
max_atomic_width: Some(64),
5556
no_default_libraries: true,
57+
only_cdylib: true,
58+
os: "solana".to_string(),
5659
panic_strategy: PanicStrategy::Abort,
5760
position_independent_executables: true,
61+
pre_link_args,
5862
requires_lto: false,
5963
singlethread: true,
60-
max_atomic_width: Some(64),
61-
eh_frame_header: false,
62-
main_needs_argc_argv: false,
63-
emit_debug_gdb_scripts: false,
64+
vendor: "solana".to_string(),
6465
.. Default::default()
6566
}
6667
}

0 commit comments

Comments
 (0)