diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2025-07-26 02:19:31 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-26 02:19:31 -0500 |
| commit | 39141d01f15b4b16566816058bdfab22831cc4e5 (patch) | |
| tree | 4fafc9fa613d3720481759c007990f1c4e6c79d6 /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | bfacbf2a3d977df5777afe7278f1fb5e1657e436 (diff) | |
| parent | 53018dc2bcd0f0ee65ca9c869130ec0e56da63e2 (diff) | |
| download | rust-39141d01f15b4b16566816058bdfab22831cc4e5.tar.gz rust-39141d01f15b4b16566816058bdfab22831cc4e5.zip | |
Rollup merge of #144431 - Gelbpunkt:f128-math-musl, r=petrochenkov,tgross35
Disable has_reliable_f128_math on musl targets musl does not implement the symbols required by rustc for f128 maths. Disable the associated cfg for all musl targets and adjust the tests accordingly. Closes rust-lang/rust#144423
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 0fb987bdf82..8edbae115bf 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -433,6 +433,9 @@ fn update_target_reliable_float_cfg(sess: &Session, cfg: &mut TargetConfig) { // This rules out anything that doesn't have `long double` = `binary128`; <= 32 bits // (ld is `f64`), anything other than Linux (Windows and MacOS use `f64`), and `x86` // (ld is 80-bit extended precision). + // + // musl does not implement the symbols required for f128 math at all. + _ if target_env == "musl" => false, ("x86_64", _) => false, (_, "linux") if target_pointer_width == 64 => true, _ => false, |
