Rollup merge of #120518 - kxxt:riscv-split-debug-info, r=compiler-errors
riscv only supports split_debuginfo=off for now Disable packed/unpacked options for riscv linux/android. Other riscv targets already only have the off option. The packed/unpacked options might be supported in the future. See upstream issue for more details: https://github.com/llvm/llvm-project/issues/56642 Fixes #110224
This commit is contained in:
commit
540936ca99
@ -1,4 +1,6 @@
|
||||
use crate::spec::{base, CodeModel, Target, TargetOptions};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::spec::{base, CodeModel, SplitDebuginfo, Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
Target {
|
||||
@ -12,6 +14,7 @@ pub fn target() -> Target {
|
||||
features: "+m,+a,+f,+d,+c".into(),
|
||||
llvm_abiname: "ilp32d".into(),
|
||||
max_atomic_width: Some(32),
|
||||
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
|
||||
..base::linux_gnu::opts()
|
||||
},
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
use crate::spec::{base, CodeModel, Target, TargetOptions};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::spec::{base, CodeModel, SplitDebuginfo, Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
Target {
|
||||
@ -12,6 +14,7 @@ pub fn target() -> Target {
|
||||
features: "+m,+a,+f,+d,+c".into(),
|
||||
llvm_abiname: "ilp32d".into(),
|
||||
max_atomic_width: Some(32),
|
||||
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
|
||||
..base::linux_musl::opts()
|
||||
},
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
use crate::spec::{base, CodeModel, SanitizerSet, Target, TargetOptions};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::spec::{base, CodeModel, SanitizerSet, SplitDebuginfo, Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
Target {
|
||||
@ -13,6 +15,7 @@ pub fn target() -> Target {
|
||||
llvm_abiname: "lp64d".into(),
|
||||
supported_sanitizers: SanitizerSet::ADDRESS,
|
||||
max_atomic_width: Some(64),
|
||||
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
|
||||
..base::android::opts()
|
||||
},
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
use crate::spec::{base, CodeModel, Target, TargetOptions};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::spec::{base, CodeModel, SplitDebuginfo, Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
Target {
|
||||
@ -12,6 +14,7 @@ pub fn target() -> Target {
|
||||
features: "+m,+a,+f,+d,+c".into(),
|
||||
llvm_abiname: "lp64d".into(),
|
||||
max_atomic_width: Some(64),
|
||||
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
|
||||
..base::linux_gnu::opts()
|
||||
},
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
use crate::spec::{base, CodeModel, Target, TargetOptions};
|
||||
use std::borrow::Cow;
|
||||
|
||||
use crate::spec::{base, CodeModel, SplitDebuginfo, Target, TargetOptions};
|
||||
|
||||
pub fn target() -> Target {
|
||||
Target {
|
||||
@ -12,6 +14,7 @@ pub fn target() -> Target {
|
||||
features: "+m,+a,+f,+d,+c".into(),
|
||||
llvm_abiname: "lp64d".into(),
|
||||
max_atomic_width: Some(64),
|
||||
supported_split_debuginfo: Cow::Borrowed(&[SplitDebuginfo::Off]),
|
||||
..base::linux_musl::opts()
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user