~mozillateam/firefox/firefox-beta.focal

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: do not build SWGL with -ffast-math on ppc64el with clang <= 10 (bionic and focal), because the compiler hangs forever
Bug-Ubuntu: https://launchpad.net/bugs/1930315
Author: Olivier Tilloy <olivier.tilloy@canonical.com>

--- a/gfx/wr/swgl/build.rs
+++ b/gfx/wr/swgl/build.rs
@@ -190,9 +190,12 @@
         } 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
+            let target = std::env::var("TARGET").unwrap();
+            if !target.starts_with("powerpc64") {
             build.flag("-ffast-math")
                  .flag("-mrecip=none")
                  .flag("-fno-finite-math-only");
+            }
         }
     }