diff options
author | Dan Albert <danalbert@google.com> | 2015-10-01 17:57:03 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-10-01 18:19:47 -0700 |
commit | 27a6d6356e2d8442ab2d80b174f1b0816bfb0a15 (patch) | |
tree | fe7854ef036b4a32d029e052224af7d4d9073f8d /build/lib | |
parent | d5c979a44510992f1aa5984aa44d53c424d6790e (diff) | |
download | ndk-27a6d6356e2d8442ab2d80b174f1b0816bfb0a15.tar.gz |
Apply DIST_DIR in build_support too.
The GCC we've been building on the build server hasn't been getting
archived :(
Change-Id: Ib7600f329129f11c4c2bf1935dcbf07b0cb07a0d
Diffstat (limited to 'build/lib')
-rw-r--r-- | build/lib/build_support.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/build/lib/build_support.py b/build/lib/build_support.py index fff7b06ef..a470c0985 100644 --- a/build/lib/build_support.py +++ b/build/lib/build_support.py @@ -105,7 +105,11 @@ def build(cmd, args): def get_default_package_dir(): - return android_path('out/ndk') + DEFAULT_OUT_DIR = android_path('out/ndk') + out_dir = os.path.realpath(os.getenv('DIST_DIR', DEFAULT_OUT_DIR)) + if not os.path.isdir(out_dir): + os.makedirs(out_dir) + return out_dir def get_default_host(): @@ -116,6 +120,7 @@ def get_default_host(): else: raise RuntimeError('Unsupported host: {}'.format(sys.platform)) + def host_to_tag(host): if host in ['darwin', 'linux']: return host + '-x86_64' @@ -126,6 +131,7 @@ def host_to_tag(host): else: raise RuntimeError('Unsupported host: {}'.format(host)) + class ArgParser(argparse.ArgumentParser): def __init__(self): super(ArgParser, self).__init__() |