mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
loongarch64-unknown-none*: Set default relocation model to static
This commit is contained in:
parent
e94bda3bf1
commit
37b465ff9c
@ -1,4 +1,4 @@
|
||||
use super::{Cc, CodeModel, LinkerFlavor, Lld, PanicStrategy};
|
||||
use super::{Cc, CodeModel, LinkerFlavor, Lld, PanicStrategy, RelocModel};
|
||||
use super::{Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
@ -13,8 +13,7 @@ pub fn target() -> Target {
|
||||
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::No),
|
||||
llvm_abiname: "lp64d".into(),
|
||||
max_atomic_width: Some(64),
|
||||
position_independent_executables: true,
|
||||
static_position_independent_executables: true,
|
||||
relocation_model: RelocModel::Static,
|
||||
panic_strategy: PanicStrategy::Abort,
|
||||
code_model: Some(CodeModel::Small),
|
||||
..Default::default()
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{Cc, CodeModel, LinkerFlavor, Lld, PanicStrategy};
|
||||
use super::{Cc, CodeModel, LinkerFlavor, Lld, PanicStrategy, RelocModel};
|
||||
use super::{Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
@ -14,8 +14,7 @@ pub fn target() -> Target {
|
||||
linker_flavor: LinkerFlavor::Gnu(Cc::No, Lld::No),
|
||||
llvm_abiname: "lp64s".into(),
|
||||
max_atomic_width: Some(64),
|
||||
position_independent_executables: true,
|
||||
static_position_independent_executables: true,
|
||||
relocation_model: RelocModel::Static,
|
||||
panic_strategy: PanicStrategy::Abort,
|
||||
code_model: Some(CodeModel::Small),
|
||||
..Default::default()
|
||||
|
Loading…
Reference in New Issue
Block a user