| Index: build/detect_host_arch.py
|
| diff --git a/build/linux/detect_host_arch.py b/build/detect_host_arch.py
|
| similarity index 87%
|
| rename from build/linux/detect_host_arch.py
|
| rename to build/detect_host_arch.py
|
| index 268646197accd55215ffed11fd0c1e10a383930c..638dd68840979d806ba08a4ef561f567be966cf8 100755
|
| --- a/build/linux/detect_host_arch.py
|
| +++ b/build/detect_host_arch.py
|
| @@ -11,6 +11,12 @@ import sys
|
|
|
|
|
| def main():
|
| + print DoMain([])
|
| + return 0
|
| +
|
| +def DoMain(_):
|
| + """Hook to be called from gyp without starting a separate python
|
| + interpreter."""
|
| host_arch = platform.machine()
|
|
|
| # Convert machine type to format recognized by gyp.
|
| @@ -28,8 +34,7 @@ def main():
|
| if host_arch == 'x64' and platform.architecture()[0] == '32bit':
|
| host_arch = 'ia32'
|
|
|
| - print host_arch
|
| - return 0
|
| + return host_arch
|
|
|
| if __name__ == '__main__':
|
| sys.exit(main())
|
|
|