Skip to content

Commit ec6fccd

Browse files
overdrivenpotatoAmanieu
authored andcommitted
Use fp64 detection instead of OS blacklist
1 parent cce6c5c commit ec6fccd

File tree

1 file changed

+4
-7
lines changed
  • crates/core_arch/src/mips

1 file changed

+4
-7
lines changed

crates/core_arch/src/mips/mod.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
//! MIPS
22
3-
// Building this module (even if unused) for non-fp64 targets such as the Sony
4-
// PSP fails with an LLVM error. There doesn't seem to be a good way to detect
5-
// fp64 support as it is sometimes implied by the target cpu, so
6-
// `#[cfg(target_feature = "fp64")]` will unfortunately not work. This is a
7-
// fairly conservative workaround that only disables MSA intrinsics for the PSP.
8-
#[cfg(not(target_os = "psp"))]
3+
// Building this module (even if unused) for non-fp64 targets fails with an LLVM
4+
// error.
5+
#[cfg(target_feature = "fp64")]
96
mod msa;
10-
#[cfg(not(target_os = "psp"))]
7+
#[cfg(target_feature = "fp64")]
118
pub use self::msa::*;
129

1310
#[cfg(test)]

0 commit comments

Comments
 (0)