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>
5
--- a/gfx/wr/swgl/build.rs
6
+++ b/gfx/wr/swgl/build.rs
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")
15
.flag("-fno-finite-math-only");