Index: build/linux/sysroot_scripts/install-sysroot.py |
diff --git a/build/linux/sysroot_scripts/install-sysroot.py b/build/linux/sysroot_scripts/install-sysroot.py |
index 3e842a47cdd9312a1a7af030aa417957684e465f..3cab8cd43a9805cfbe6c3a830713bb67dafab9a2 100755 |
--- a/build/linux/sysroot_scripts/install-sysroot.py |
+++ b/build/linux/sysroot_scripts/install-sysroot.py |
@@ -108,6 +108,10 @@ def DetectHostArch(): |
return 'arm64' |
elif detected_host_arch == 'mips': |
return 'mips' |
+ elif detected_host_arch == 'ppc': |
+ return 'ppc' |
+ elif detected_host_arch == 's390': |
+ return 's390' |
raise Error('Unrecognized host arch: %s' % detected_host_arch) |
@@ -182,6 +186,9 @@ def main(args): |
return 0 |
if options.running_as_hook: |
+ # PPC/s390 don't use sysroot, see http://crbug.com/646169 |
+ if DetectHostArch() in ['ppc','s390']: |
+ return 0 |
InstallDefaultSysroots() |
agrieve
2016/09/29 23:59:43
nit: can you change this so that it takes the host
|
else: |
if not options.arch: |