Skip to content

Commit 032ba98

Browse files
committed
rustc_target: introduce Abi
Improve type safety by using an enum rather than strings.
1 parent 35a99c1 commit 032ba98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ use rustc_middle::dep_graph::{WorkProduct, WorkProductId};
4949
use rustc_session::Session;
5050
use rustc_session::config::OutputFilenames;
5151
use rustc_span::{Symbol, sym};
52-
use rustc_target::spec::Arch;
52+
use rustc_target::spec::{Abi, Arch};
5353

5454
pub use crate::config::*;
5555
use crate::prelude::*;
@@ -186,7 +186,7 @@ impl CodegenBackend for CraneliftCodegenBackend {
186186
let has_reliable_f16_f128 = !(sess.target.arch == Arch::X86_64
187187
&& sess.target.os == "windows"
188188
&& sess.target.env == "gnu"
189-
&& sess.target.abi != "llvm");
189+
&& sess.target.abi != Abi::Llvm);
190190

191191
TargetConfig {
192192
target_features,

0 commit comments

Comments
 (0)