# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/firefox/hotfix-swgl-ia64-fastmath.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- firefox-152.0.6/gfx/wr/swgl/build.rs.vanilla 2026-07-19 19:20:50.371548918 +0200 +++ firefox-152.0.6/gfx/wr/swgl/build.rs 2026-07-19 19:58:05.948695250 +0200 @@ -231,6 +231,13 @@ .flag("-Xclang") .flag("-mrecip=none") .flag("/clang:-fno-finite-math-only"); + } else if std::env::var("CARGO_CFG_TARGET_ARCH").as_deref() == Ok("ia64") { + // Itanium always divides via a reciprocal approximation regardless + // of -mrecip, so the fuzz concerns above don't apply here. + build + .flag("-ffast-math") + .flag("-minline-float-divide-max-throughput") + .flag("-minline-sqrt-max-throughput"); } else if tool.is_like_clang() { // gcc only supports -mrecip=none on some targets so to keep // things simple we don't use -ffast-math with gcc at all