Skip to content
Snippets Groups Projects
Commit 0edcadf2 authored by Michael Sun's avatar Michael Sun Committed by Gerrit Code Review
Browse files

Merge "Detect non x86_64 machine in build script."

parents 19e462d1 aa11e7d8
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ vendor repository as well.
import argparse
import multiprocessing
import os
import platform
import shutil
import six
import subprocess
......@@ -802,6 +803,11 @@ if __name__ == '__main__':
# Make sure we get absolute path + expanded path for bootstrap directory
args.bootstrap_dir = os.path.abspath(os.path.expanduser(args.bootstrap_dir))
# Possible values for machine() come from 'uname -m'
# Since this script only runs on Linux, x86_64 machines must have this value
if platform.machine() != 'x86_64':
raise Exception("Only x86_64 machines are currently supported by this build script.")
if args.run_bootstrap:
bootstrap = Bootstrap(args.bootstrap_dir, os.path.dirname(__file__))
bootstrap.bootstrap()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment