reject unsound toggling of RISCV target features

This commit is contained in:
Ralf Jung
2024-12-15 12:08:50 +01:00
parent d18506299b
commit 171223e01b
2 changed files with 67 additions and 4 deletions

View File

@@ -3166,7 +3166,7 @@ impl Target {
// Note that the `lp64e` is still unstable as it's not (yet) part of the ELF psABI.
check_matches!(
&*self.llvm_abiname,
"lp64" | "lp64f" | "lp64d" | "lp64q" | "lp64e",
"lp64" | "lp64f" | "lp64d" | "lp64e",
"invalid RISC-V ABI name"
);
}