зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1899444 - Part 2. Move --disable-icu4x to JS standalone. r=spidermonkey-reviewers,platform-i18n-reviewers,firefox-build-system-reviewers,glandium,anba
After landing bug 1824671, Gecko always requires ICU4X. So I would like to move `--disable-icu4x` options to JS standalone. Differential Revision: https://phabricator.services.mozilla.com/D214066
This commit is contained in:
Родитель
2ad5cd302a
Коммит
f0b3bd83ac
|
@ -1323,6 +1323,23 @@ set_config("MOZ_ICU_CFLAGS", [], when=in_tree_icu)
|
|||
set_config("MOZ_SYSTEM_ICU", True, when=system_icu)
|
||||
set_define("MOZ_SYSTEM_ICU", True, when=system_icu)
|
||||
|
||||
option(
|
||||
"--disable-icu4x",
|
||||
help="Disable using ICU4X",
|
||||
when=js_standalone,
|
||||
)
|
||||
|
||||
|
||||
@depends(
|
||||
depends("--enable-icu4x", when=js_standalone)(lambda x: bool(x)), js_standalone
|
||||
)
|
||||
def enable_icu4x(enable, js_standalone):
|
||||
return not js_standalone or enable
|
||||
|
||||
|
||||
set_config("MOZ_ICU4X", True, when=enable_icu4x)
|
||||
set_define("MOZ_ICU4X", True, when=enable_icu4x)
|
||||
|
||||
option("--without-intl-api", help="Disable ECMAScript Internationalization API")
|
||||
|
||||
|
||||
|
|
|
@ -535,14 +535,6 @@ option(
|
|||
|
||||
set_config("MOZ_UI_LOCALE", depends("--enable-ui-locale")(lambda x: x))
|
||||
|
||||
option(
|
||||
"--disable-icu4x",
|
||||
help="Disable using ICU4X",
|
||||
)
|
||||
|
||||
set_config("MOZ_ICU4X", True, when="--enable-icu4x")
|
||||
set_define("MOZ_ICU4X", True, when="--enable-icu4x")
|
||||
|
||||
# clang-plugin location
|
||||
# ==============================================================
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче