Fail on non-aarch64 targets
This commit is contained in:
parent
40f0172c6a
commit
518becf5ea
1 changed files with 5 additions and 0 deletions
|
@ -617,6 +617,11 @@ pub(crate) fn global_llvm_features(sess: &Session, diagnostics: bool) -> Vec<Str
|
||||||
|
|
||||||
// -Zfixed-x18
|
// -Zfixed-x18
|
||||||
if sess.opts.unstable_opts.fixed_x18 {
|
if sess.opts.unstable_opts.fixed_x18 {
|
||||||
|
if sess.target.arch != "aarch64" {
|
||||||
|
// TODO: What's the correct way to return a error here?
|
||||||
|
panic!("-Zfixed-x18 only allowed on aarch64");
|
||||||
|
}
|
||||||
|
|
||||||
features.push("+reserve-x18".into());
|
features.push("+reserve-x18".into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue