Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(445)

Unified Diff: build/detect_host_arch.py

Issue 2368943005: PPC/s390: [sysroot installer] Disable for host arch PPC/s390 (Closed)
Patch Set: added AMD64 to HostArch Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | build/linux/sysroot_scripts/install-sysroot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/detect_host_arch.py
diff --git a/build/detect_host_arch.py b/build/detect_host_arch.py
index ccfbb6e5703641ba3255cb179717da8181ae79ef..dc3009164082b1190856bd9862bb7c65e15ddf6a 100755
--- a/build/detect_host_arch.py
+++ b/build/detect_host_arch.py
@@ -17,12 +17,17 @@ def HostArch():
# Convert machine type to format recognized by gyp.
if re.match(r'i.86', host_arch) or host_arch == 'i86pc':
host_arch = 'ia32'
- elif host_arch in ['x86_64', 'amd64']:
+ elif host_arch in ['x86_64', 'amd64', 'AMD64']:
host_arch = 'x64'
elif host_arch.startswith('arm'):
host_arch = 'arm'
elif host_arch.startswith('mips'):
host_arch = 'mips'
+ elif host_arch.startswith('ppc'):
+ host_arch = 'ppc'
+ elif host_arch.startswith('s390'):
+ host_arch = 's390'
+
# platform.machine is based on running kernel. It's possible to use 64-bit
# kernel with 32-bit userland, e.g. to give linker slightly more memory.
« no previous file with comments | « AUTHORS ('k') | build/linux/sysroot_scripts/install-sysroot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698