Bug 1686646 - Move --enable-release and DEVELOPER_OPTIONS to top-level moz.configure. r=firefox-build-system-reviewers,dmajor

Differential Revision: https://phabricator.services.mozilla.com/D101713
This commit is contained in:
Mike Hommey 2021-01-15 04:25:54 +00:00
parent 80cec70afd
commit ea136c68b4
2 changed files with 21 additions and 20 deletions

View File

@ -4,26 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
imply_option("--enable-release", mozilla_official)
imply_option("--enable-release", depends_if("MOZ_AUTOMATION")(lambda x: True))
option(
"--enable-release",
default=milestone.is_release_or_beta,
help="{Build|Do not build} with more conservative, release "
"engineering-oriented options.{ This may slow down builds.|}",
)
@depends("--enable-release")
def developer_options(value):
if not value:
return True
add_old_configure_assignment("DEVELOPER_OPTIONS", developer_options)
set_config("DEVELOPER_OPTIONS", developer_options)
# Code optimization
# ==============================================================

View File

@ -173,6 +173,27 @@ option(env="MOZ_PGO", help="Build with profile guided optimizations")
set_config("MOZ_PGO", depends("MOZ_PGO")(lambda x: bool(x)))
imply_option("--enable-release", mozilla_official)
imply_option("--enable-release", depends_if("MOZ_AUTOMATION")(lambda x: True))
option(
"--enable-release",
default=milestone.is_release_or_beta,
help="{Build|Do not build} with more conservative, release "
"engineering-oriented options.{ This may slow down builds.|}",
)
@depends("--enable-release")
def developer_options(value):
if not value:
return True
add_old_configure_assignment("DEVELOPER_OPTIONS", developer_options)
set_config("DEVELOPER_OPTIONS", developer_options)
wine = check_prog(
"WINE",
["wine64", "wine"],