aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormakise-homura <akemi_homura@kurisa.ch>2018-04-12 22:40:53 +0300
committermakise-homura <akemi_homura@kurisa.ch>2018-04-12 22:40:53 +0300
commit495f47b12ba0f6463c999a1ec988146fd0b578b8 (patch)
tree1bcb57abb38378a75460e44163ac99d6135c35fd
parent0bea50816b6ffc0f35a15bdbac3cfd00bc13e8e0 (diff)
downloadmeson-495f47b12ba0f6463c999a1ec988146fd0b578b8.zip
meson-495f47b12ba0f6463c999a1ec988146fd0b578b8.tar.gz
meson-495f47b12ba0f6463c999a1ec988146fd0b578b8.tar.bz2
Make more precise CPU detection for Elbrus platform
-rw-r--r--mesonbuild/environment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py
index 25be7cb..cb23a5b 100644
--- a/mesonbuild/environment.py
+++ b/mesonbuild/environment.py
@@ -213,6 +213,9 @@ def detect_cpu(compilers):
except mesonlib.MesonException:
pass
return 'x86_64'
+ if trial == 'e2k':
+ # Make more precise CPU detection for Elbrus platform.
+ trial = platform.processor().lower()
# Add fixes here as bugs are reported.
return trial