Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c65ffa7

Browse files
committedJul 1, 2019
Use code model 'medium' for 64-bit RISC-V targets
1 parent fea8194 commit c65ffa7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎src/librustc_target/spec/riscv64gc_unknown_none_elf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn target() -> TargetResult {
2323
executables: true,
2424
panic_strategy: PanicStrategy::Abort,
2525
relocation_model: "static".to_string(),
26+
code_model: Some("medium".to_string()),
2627
emit_debug_gdb_scripts: false,
2728
abi_blacklist: super::riscv_base::abi_blacklist(),
2829
eliminate_frame_pointer: false,

‎src/librustc_target/spec/riscv64imac_unknown_none_elf.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub fn target() -> TargetResult {
2323
executables: true,
2424
panic_strategy: PanicStrategy::Abort,
2525
relocation_model: "static".to_string(),
26+
code_model: Some("medium".to_string()),
2627
emit_debug_gdb_scripts: false,
2728
abi_blacklist: super::riscv_base::abi_blacklist(),
2829
eliminate_frame_pointer: false,

0 commit comments

Comments
 (0)
Please sign in to comment.