Skip to content

Commit

Permalink
library/std/build.rs: "powerpc64le" is not a target_arch
Browse files Browse the repository at this point in the history
The target_arch of `powerpc64le` is `powerpc64`, so
`powerpc64le` can be removed from a match arm in build.rs
related to f16.

You can check available `target_arch`:s with:

    $ rustc +nightly -Zunstable-options --print all-target-specs-json \
            | grep powerpc | grep arch | sort | uniq
        "arch": "powerpc",
        "arch": "powerpc64",
  • Loading branch information
Martin Nordholts committed Jul 3, 2024
1 parent 2a65e9f commit 67535b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ fn main() {
// the compiler-builtins update. <https://github.com/rust-lang/rust/issues/123885>
("x86" | "x86_64", _) => false,
// Missing `__gnu_h2f_ieee` and `__gnu_f2h_ieee`
("powerpc" | "powerpc64" | "powerpc64le", _) => false,
("powerpc" | "powerpc64", _) => false,
// Missing `__extendhfsf` and `__truncsfhf`
("riscv32" | "riscv64", _) => false,
// Most OSs are missing `__extendhfsf` and `__truncsfhf`
Expand Down

0 comments on commit 67535b6

Please sign in to comment.