Bug 1354581 - Make automation builds imply --enable-release at the configure level. r=cmanchester+432261

--HG--
extra : rebase_source : b6be454ec3b6aad7a1b60905ffe65e1891d4bb22
This commit is contained in:
Mike Hommey 2017-06-21 11:33:30 +09:00
parent da18a9b1df
commit 7cccfe94be
3 changed files with 3 additions and 2 deletions

View File

@ -1049,6 +1049,7 @@ set_config('RUSTFLAGS', depends('RUSTFLAGS')(lambda flags: flags))
imply_option('--enable-release', mozilla_official)
imply_option('--enable-release', depends_if('MOZ_AUTOMATION')(lambda x: True))
js_option('--enable-release',
help='Build with more conservative, release engineering-oriented '

View File

@ -14,8 +14,6 @@ mk_add_options AUTOCLOBBER=1
ac_add_options --enable-crashreporter
ac_add_options --enable-release
# Tell the build system where to find llvm-config for builds on automation.
export LLVM_CONFIG="${TOOLTOOL_DIR:-$topsrcdir}/clang/bin/llvm-config"

View File

@ -80,6 +80,8 @@ class TestToolkitMozConfigure(BaseConfigureTest):
with self.assertRaises(InvalidOptionError):
get_value(['--disable-release'], environ={'MOZILLA_OFFICIAL': 1})
self.assertEqual(get_value(environ={'MOZ_AUTOMATION': 1}), None)
if __name__ == '__main__':
main()