From: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Date: Tue, 29 Jul 2025 13:44:31 +0200
Subject: skia: Adjust detection of ppc64 architecture

On ppc64 the build of Thunderbird by the help of LLVM is failing due an
issue in the PowerPC backend.

Thunderbird can be build with GCC/G++ instead but requires to use
CONFIG['TARGET_CPU'] in gfx/skia/moz.build to detect correctly the
target architecture.

Forwarded: https://github.com/llvm/llvm-project/issues/110753
---
 gfx/skia/moz.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gfx/skia/moz.build b/gfx/skia/moz.build
index d46a7a7..f19f1c3 100644
--- a/gfx/skia/moz.build
+++ b/gfx/skia/moz.build
@@ -380,7 +380,7 @@ UNIFIED_SOURCES += [
 ]
 
 # Work around https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110606
-if CONFIG['CC_TYPE'] == 'gcc' and CONFIG['CPU_ARCH'] == 'ppc64':
+if CONFIG['CC_TYPE'] == 'gcc' and CONFIG['TARGET_CPU'] == 'ppc64':
     SOURCES += ['skia/src/sksl/SkSLInliner.cpp']
 else:
     UNIFIED_SOURCES += ['skia/src/sksl/SkSLInliner.cpp']
