~mozillateam/firefox/firefox-beta.focal

« back to all changes in this revision

Viewing changes to debian/patches/ppc64el-clang10-no-fast-math.patch

  • Committer: Rico Tzschichholz
  • Date: 2023-12-23 16:48:19 UTC
  • Revision ID: ricotz@ubuntu.com-20231223164819-5nni6p8n0k6s3rbx
Sync with 121 focal stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: do not build SWGL with -ffast-math on ppc64el with clang <= 10 (bionic and focal), because the compiler hangs forever
 
2
Bug-Ubuntu: https://launchpad.net/bugs/1930315
 
3
Author: Olivier Tilloy <olivier.tilloy@canonical.com>
 
4
 
 
5
--- a/gfx/wr/swgl/build.rs
 
6
+++ b/gfx/wr/swgl/build.rs
 
7
@@ -190,9 +190,12 @@
 
8
         } else if tool.is_like_clang() {
 
9
             // gcc only supports -mrecip=none on some targets so to keep
 
10
             // things simple we don't use -ffast-math with gcc at all
 
11
+            let target = std::env::var("TARGET").unwrap();
 
12
+            if !target.starts_with("powerpc64") {
 
13
             build.flag("-ffast-math")
 
14
                  .flag("-mrecip=none")
 
15
                  .flag("-fno-finite-math-only");
 
16
+            }
 
17
         }
 
18
     }
 
19