mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 12:51:06 +00:00
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:
parent
80cec70afd
commit
ea136c68b4
@ -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
|
||||
# ==============================================================
|
||||
|
||||
|
@ -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"],
|
||||
|
Loading…
Reference in New Issue
Block a user