mcst-linux-kernel/patches-2024.06.26/meson-1.0.2/0001-support-sparc.patch

13 lines
569 B
Diff
Raw Permalink Normal View History

2024-07-09 13:51:45 +03:00
diff -rupN a/mesonbuild/environment.py b/mesonbuild/environment.py
--- a/mesonbuild/environment.py 2023-05-25 18:13:46.720486238 +0300
+++ b/mesonbuild/environment.py 2023-05-25 18:16:39.768615325 +0300
@@ -373,6 +373,8 @@ def detect_cpu(compilers: CompilersDict)
elif trial == 'e2k':
# Make more precise CPU detection for Elbrus platform.
trial = platform.processor().lower()
+ elif trial == 'sparc':
+ trial = platform.processor().lower()
elif trial.startswith('mips'):
if '64' not in trial:
trial = 'mips'